#include #include #include #include int main() { signal(SIGPIPE,SIG_IGN); 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; } Fetcher.Run(); _error->DumpErrors(); }