diff options
| author | Michael Vogt <egon@bottom> | 2006-07-26 16:59:37 +0200 |
|---|---|---|
| committer | Michael Vogt <egon@bottom> | 2006-07-26 16:59:37 +0200 |
| commit | 70c850f4910cfcb6a825c67f577d8bc554612044 (patch) | |
| tree | 5321c9aa207b8743c7cca63e2b7b05609fbcddf7 /doc/examples/sources.py | |
| parent | f701fc174a88d8f2b418a032571ff40ed6fd56e6 (diff) | |
| parent | 6fc084d34105f336fdf090e2dd45e402e25cfc57 (diff) | |
| download | python-apt-70c850f4910cfcb6a825c67f577d8bc554612044.tar.gz | |
* merged from the auto-mark branch
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..c12c6f15 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 + print sources.Index.ArchiveURI("") |
