diff options
Diffstat (limited to 'test/testextract.cc')
-rw-r--r-- | test/testextract.cc | 6 |
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); |