HCoop
/
ntk
/
apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Http download fixes
[ntk/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
}