]> git.saurik.com Git - apt.git/blob - test/scratch.cc
modified debian/rules so now you can pass the pkg name ...
[apt.git] / test / scratch.cc
1 #include <apt-pkg/tagfile.h>
2
3 #include <signal.h>
4 #include <stdio.h>
5
6 int main(int argc,char *argv[])
7 {
8 FileFd F(argv[1],FileFd::ReadOnly);
9 pkgTagFile Reader(F);
10
11 pkgTagSection Sect;
12 while (Reader.Step(Sect) == true)
13 {
14 Sect.FindS("Package");
15 Sect.FindS("Section");
16 Sect.FindS("Version");
17 Sect.FindI("Size");
18 };
19
20 return 0;
21 }