]> git.saurik.com Git - apt.git/blame - test/scratch.cc
Fixed more things
[apt.git] / test / scratch.cc
CommitLineData
2b154e53 1#include <apt-pkg/tagfile.h>
024835dc 2
b98f2859
AL
3#include <signal.h>
4#include <stdio.h>
5
93bf083d 6int main(int argc,char *argv[])
024835dc 7{
2b154e53
AL
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 };
93bf083d 19
f46e7681 20 return 0;
024835dc 21}