summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:50:38 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:50:38 +0000
commit0149949bce07d3a15cb8a197df1240d56f7bcd26 (patch)
tree480da4e027332ba1d69d9e38a5bf67a0a946ea65 /apt-pkg/tagfile.cc
parentf55a958ff2251f0061ab907157c99a350e56025f (diff)
Checkpoint
Author: jgg Date: 1998-07-04 22:32:11 GMT Checkpoint
Diffstat (limited to 'apt-pkg/tagfile.cc')
-rw-r--r--apt-pkg/tagfile.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/apt-pkg/tagfile.cc b/apt-pkg/tagfile.cc
index 62d66590b..6c4bdd9ac 100644
--- a/apt-pkg/tagfile.cc
+++ b/apt-pkg/tagfile.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: tagfile.cc,v 1.2 1998/07/04 05:57:39 jgg Exp $
+// $Id: tagfile.cc,v 1.3 1998/07/04 22:32:14 jgg Exp $
/* ######################################################################
Fast scanner for RFC-822 type header information
@@ -164,12 +164,21 @@ int main(int argc,char *argv[])
{
File CacheF("./cache",File::WriteExists);
- MMap Map(CacheF,MMap::Public);
+ MMap Map(CacheF,MMap::Public | MMap::ReadOnly);
pkgCache Cache(Map);
for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)
{
cout << "Package: " << I.Name() << endl;
- }
+ for (pkgCache::VerIterator V = I.VersionList(); V.end() == false; V++)
+ {
+ cout << "Version: " << V.VerStr() << endl;
+ cout << "Size: " << V->Size << endl;
+ cout << "Installed-Size: " << V->InstalledSize << endl;
+ cout << "Section: " << V.Section() << endl;
+ cout << "Priority: " << Cache.Priority(V->Priority) << endl;
+ }
+ cout << endl;
+ }
}
#if 0