diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-08 16:53:04 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-08 16:53:04 +0200 |
| commit | 53809b5b5c560cab8da18649a949228f7458edef (patch) | |
| tree | 6927533b036ea30bb663c49ce20982f1aad80ab6 /doc/examples/sources.py | |
| parent | fe5f0be5325814bebafed82867cc7b81ce0c82e2 (diff) | |
| parent | e02913b6f336d4bf5bc2c17032c91ade974de04f (diff) | |
| download | python-apt-53809b5b5c560cab8da18649a949228f7458edef.tar.gz | |
* cherry picked from mainline
* uploaded
Diffstat (limited to 'doc/examples/sources.py')
| -rw-r--r-- | doc/examples/sources.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/examples/sources.py b/doc/examples/sources.py index 79514621..0a90bae9 100644 --- a/doc/examples/sources.py +++ b/doc/examples/sources.py @@ -4,6 +4,12 @@ import apt_pkg apt_pkg.init() +#cache = apt_pkg.GetCache() +#sources = apt_pkg.GetPkgSrcRecords(cache) + sources = apt_pkg.GetPkgSrcRecords() +sources.Restart() while sources.Lookup('hello'): print sources.Package, sources.Version, sources.Maintainer, sources.Section, `sources.Binaries` + #print sources.Files + |
