summaryrefslogtreecommitdiff
path: root/test/scratch.cc
blob: d3ca58a775228bdabfbb15a0c8d85c48c78c3131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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);
   
   pkgTagSection Sect;
   while (Reader.Step(Sect) == true)
   {
      Sect.FindS("Package");
      Sect.FindS("Section");
      Sect.FindS("Version");
      Sect.FindI("Size");
   };*/
   
   return 0;
}