]>
Commit | Line | Data |
---|---|---|
024835dc AL |
1 | #include <apt-pkg/acquire-item.h> |
2 | #include <apt-pkg/init.h> | |
3 | #include <apt-pkg/error.h> | |
4 | ||
5 | int main() | |
6 | { | |
7 | pkgInitialize(*_config); | |
8 | ||
9 | pkgSourceList List; | |
10 | pkgAcquire Fetcher; | |
11 | List.ReadMainList(); | |
12 | ||
13 | pkgSourceList::const_iterator I; | |
14 | for (I = List.begin(); I != List.end(); I++) | |
15 | { | |
16 | new pkgAcqIndex(&Fetcher,I); | |
17 | if (_error->PendingError() == true) | |
18 | break; | |
19 | } | |
20 | ||
21 | _error->DumpErrors(); | |
22 | } |