projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* fix missing SetExecClose() call when the status-fd is used
[apt.git]
/
test
/
scratch.cc
diff --git
a/test/scratch.cc
b/test/scratch.cc
index 6f55e53d0cad5e91503ca4aec35da01b5a06b807..d638c70972e454bf930b243a9628c77d84209d17 100644
(file)
--- a/
test/scratch.cc
+++ b/
test/scratch.cc
@@
-7,13
+7,16
@@
#include <apt-pkg/init.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/init.h>
#include <apt-pkg/fileutl.h>
+using namespace std;
+
int main(int argc,char *argv[])
{
int main(int argc,char *argv[])
{
- pkgInitialize(*_config);
+ pkgInitConfig(*_config);
+ pkgInitSystem(*_config,_system);
- cout << flNoLink(argv[1]) << endl;
+
//
cout << flNoLink(argv[1]) << endl;
- #if 0
+
//
#if 0
/* DynamicMMap *FileMap = new DynamicMMap(MMap::Public);
pkgFLCache *FList = new pkgFLCache(*FileMap);
/* DynamicMMap *FileMap = new DynamicMMap(MMap::Public);
pkgFLCache *FList = new pkgFLCache(*FileMap);
@@
-97,6
+100,6
@@
int main(int argc,char *argv[])
Deb.ExtractArchive(Extract);
}
// #endif
Deb.ExtractArchive(Extract);
}
// #endif
-#endif
+
//
#endif
_error->DumpErrors();
}
_error->DumpErrors();
}