X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/024835dca750b828b593e71fc80ffcb87edafb4f..93552173b2a784d4964d1153c9e5136d62c3e42c:/test/scratch.cc diff --git a/test/scratch.cc b/test/scratch.cc index 577ab5f9b..de306e802 100644 --- a/test/scratch.cc +++ b/test/scratch.cc @@ -1,22 +1,22 @@ #include +#include #include #include +#include -int main() +#include +#include + +int main(int argc,char *argv[]) { - 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; - } + + URI Foo(argv[1]); + cout << Foo.Access << '\'' << endl; + cout << Foo.Host << '\'' << endl; + cout << Foo.Path << '\'' << endl; + cout << Foo.User << '\'' << endl; + cout << Foo.Password << '\'' << endl; + cout << Foo.Port << endl; - _error->DumpErrors(); + return 0; }