From 2b154e536a0df3afb318ddcf9b7daf9337de3c23 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:57 +0000 Subject: Http download fixes Author: jgg Date: 1999-02-27 22:29:11 GMT Http download fixes --- test/scratch.cc | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'test') diff --git a/test/scratch.cc b/test/scratch.cc index de306e802..dc02e059a 100644 --- a/test/scratch.cc +++ b/test/scratch.cc @@ -1,22 +1,21 @@ -#include -#include -#include -#include -#include +#include #include #include int main(int argc,char *argv[]) { - - 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; + FileFd F(argv[1],FileFd::ReadOnly); + pkgTagFile Reader(F); + + pkgTagSection Sect; + while (Reader.Step(Sect) == true) + { + Sect.FindS("Package"); + Sect.FindS("Section"); + Sect.FindS("Version"); + Sect.FindI("Size"); + }; return 0; } -- cgit v1.2.3