diff options
| author | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:32 +0000 |
|---|---|---|
| committer | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:32 +0000 |
| commit | 9713703498d735165a22eb0a562a3d70ac3a4dcc (patch) | |
| tree | 1f72a89ea5921e49699d1cb8a01a942fbde55ab1 | |
| parent | 93d00fe7953e2cd22197de842a79053f6b907417 (diff) | |
| download | python-apt-9713703498d735165a22eb0a562a3d70ac3a4dcc.tar.gz | |
Parse /var/lib/dpkg/status instead of an apt list, so t...
Author: mdz
Date: 2003-01-04 20:50:47 GMT
Parse /var/lib/dpkg/status instead of an apt list, so that it provides
a working example
| -rwxr-xr-x | doc/examples/tagfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/tagfile.py b/doc/examples/tagfile.py index 01fed2cc..653c0a71 100755 --- a/doc/examples/tagfile.py +++ b/doc/examples/tagfile.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import apt_pkg -Parse = apt_pkg.ParseTagFile(open("apt/lists/_org_ftp.debian.org_ftp_dists_potato_main_binary-i386_Packages","r")); +Parse = apt_pkg.ParseTagFile(open("/var/lib/dpkg/status","r")); while Parse.Step() == 1: print Parse.Section.get("Package"); |
