]> git.saurik.com Git - apt.git/blob - test/scratch.cc
CDROM debug option
[apt.git] / test / scratch.cc
1 #include <apt-pkg/tagfile.h>
2 #include <apt-pkg/strutl.h>
3
4 #include <signal.h>
5 #include <stdio.h>
6
7 int main(int argc,char *argv[])
8 {
9 URI U(argv[1]);
10 cout << U.Access << endl;
11 cout << U.User << endl;
12 cout << U.Password << endl;
13 cout << U.Host << endl;
14 cout << U.Path << endl;
15 cout << U.Port << endl;
16
17 /*
18 FileFd F(argv[1],FileFd::ReadOnly);
19 pkgTagFile Reader(F);
20
21 pkgTagSection Sect;
22 while (Reader.Step(Sect) == true)
23 {
24 Sect.FindS("Package");
25 Sect.FindS("Section");
26 Sect.FindS("Version");
27 Sect.FindI("Size");
28 };*/
29
30 return 0;
31 }