X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b2e465d6d32d2dc884f58b94acb7e35f671a87fe..8545b536e3459a06fa007e2c307a77188e5de4b1:/test/testextract.cc 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 #include #include @@ -11,6 +10,8 @@ #include #include +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);