X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/93bf083d699c60f1ac40297bfa6783fb0cb800d8..ded8766eeaff8d2e7e7fc0ff29aca25269a08313:/test/scratch.cc diff --git a/test/scratch.cc b/test/scratch.cc index 7cd43c554..de306e802 100644 --- a/test/scratch.cc +++ b/test/scratch.cc @@ -1,14 +1,16 @@ #include +#include #include #include -#include #include +#include +#include + int main(int argc,char *argv[]) { - signal(SIGPIPE,SIG_IGN); -/* URI Foo(argv[1]); + URI Foo(argv[1]); cout << Foo.Access << '\'' << endl; cout << Foo.Host << '\'' << endl; cout << Foo.Path << '\'' << endl; @@ -16,23 +18,5 @@ int main(int argc,char *argv[]) cout << Foo.Password << '\'' << endl; cout << Foo.Port << endl; - return 0;*/ - - 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(); + return 0; }