]>
git.saurik.com Git - apt.git/blob - test/scratch.cc
1 #include <apt-pkg/tagfile.h>
2 #include <apt-pkg/strutl.h>
7 int main(int argc
,char *argv
[])
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
;
18 FileFd F(argv[1],FileFd::ReadOnly);
22 while (Reader.Step(Sect) == true)
24 Sect.FindS("Package");
25 Sect.FindS("Section");
26 Sect.FindS("Version");