diff options
| author | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:36 +0000 |
|---|---|---|
| committer | Arch Librarian <arch@canonical.com> | 2004-11-24 10:00:36 +0000 |
| commit | e5d16b671f2a625893731b4ea0bd684bbd444323 (patch) | |
| tree | 73f3a71281ad33ff97a624b3679ce9644031d1a2 /doc | |
| parent | 626a19f14cf2728cab14f3c71cc8d689c7ebc169 (diff) | |
| download | python-apt-e5d16b671f2a625893731b4ea0bd684bbd444323.tar.gz | |
Initial support for accessing source package data
Author: mdz
Date: 2003-07-23 02:20:24 GMT
Initial support for accessing source package data
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/examples/sources.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/examples/sources.py b/doc/examples/sources.py new file mode 100644 index 00000000..79514621 --- /dev/null +++ b/doc/examples/sources.py @@ -0,0 +1,9 @@ +#!/usr/bin/python + +import apt_pkg + +apt_pkg.init() + +sources = apt_pkg.GetPkgSrcRecords() +while sources.Lookup('hello'): + print sources.Package, sources.Version, sources.Maintainer, sources.Section, `sources.Binaries` |
