summaryrefslogtreecommitdiff
path: root/test/testextract.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:03:13 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:03:13 +0000
commit5a8748f187da8fa666e28ee24360ca9842e35b3c (patch)
tree489cb5bd416487af9daae39059b482700fbc30be /test/testextract.cc
parent70dd8bf416532654626ac693a145fd275bb8092a (diff)
* Get self-tests compiling again, updated for latest li...
Author: mdz Date: 2003-08-18 15:32:37 GMT * Get self-tests compiling again, updated for latest library API and g++ 3.3
Diffstat (limited to 'test/testextract.cc')
-rw-r--r--test/testextract.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/testextract.cc b/test/testextract.cc
index 41a197068..1c738aab9 100644
--- a/test/testextract.cc
+++ b/test/testextract.cc
@@ -1,4 +1,3 @@
-#define APT_COMPATIBILITY 1
#include <apt-pkg/dpkgdb.h>
#include <apt-pkg/debfile.h>
#include <apt-pkg/error.h>
@@ -11,6 +10,8 @@
#include <stdio.h>
#include <stdlib.h>
+using namespace std;
+
bool Go(int argc,char *argv[])
{
// Init the database
@@ -83,7 +84,8 @@ bool Go(int argc,char *argv[])
int main(int argc,char *argv[])
{
- pkgInitialize(*_config);
+ pkgInitConfig(*_config);
+ pkgInitSystem(*_config,_system);
_config->Set("Dir::State::status","/tmp/testing/status");
Go(argc,argv);