diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:07 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:07 +0000 |
commit | 024835dca750b828b593e71fc80ffcb87edafb4f (patch) | |
tree | 8fdeba9dbc538f618a05c03b7757fe342dbe0545 /test/scratch.cc | |
parent | 3b5421b4c75f5c85b48cbb61bf22642ff52a6352 (diff) |
Sync
Author: jgg
Date: 1998-10-20 02:41:03 GMT
Sync
Diffstat (limited to 'test/scratch.cc')
-rw-r--r-- | test/scratch.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/scratch.cc b/test/scratch.cc new file mode 100644 index 000000000..577ab5f9b --- /dev/null +++ b/test/scratch.cc @@ -0,0 +1,22 @@ +#include <apt-pkg/acquire-item.h> +#include <apt-pkg/init.h> +#include <apt-pkg/error.h> + +int main() +{ + pkgInitialize(*_config); + + pkgSourceList List; + pkgAcquire Fetcher; + List.ReadMainList(); + + pkgSourceList::const_iterator I; + for (I = List.begin(); I != List.end(); I++) + { + new pkgAcqIndex(&Fetcher,I); + if (_error->PendingError() == true) + break; + } + + _error->DumpErrors(); +} |