diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:04 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:04 +0000 |
commit | 3856756b3469c194ad4f56bf83497f25c42e8253 (patch) | |
tree | d3aa4d1cbbc3b97b6fbe3f5240678cb51a8de01a /test | |
parent | c1e78ee5a2697afc0902d1be294d71de93090909 (diff) | |
download | apt-3856756b3469c194ad4f56bf83497f25c42e8253.tar.gz |
Url parsing fix
Author: jgg
Date: 1999-06-24 04:34:25 GMT
Url parsing fix
Diffstat (limited to 'test')
-rw-r--r-- | test/scratch.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/scratch.cc b/test/scratch.cc index dc02e059a..d3ca58a77 100644 --- a/test/scratch.cc +++ b/test/scratch.cc @@ -1,10 +1,20 @@ #include <apt-pkg/tagfile.h> +#include <apt-pkg/strutl.h> #include <signal.h> #include <stdio.h> int main(int argc,char *argv[]) { + URI U(argv[1]); + cout << U.Access << endl; + cout << U.User << endl; + cout << U.Password << endl; + cout << U.Host << endl; + cout << U.Path << endl; + cout << U.Port << endl; + +/* FileFd F(argv[1],FileFd::ReadOnly); pkgTagFile Reader(F); @@ -15,7 +25,7 @@ int main(int argc,char *argv[]) Sect.FindS("Section"); Sect.FindS("Version"); Sect.FindI("Size"); - }; + };*/ return 0; } |