diff options
| author | Michael Vogt <egon@bottom> | 2006-12-19 11:50:52 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@bottom> | 2006-12-19 11:50:52 +0100 |
| commit | 75da7640381be141209986156eba32825019add8 (patch) | |
| tree | 5aa439eeeb55331ca9e8d3245b0c387d8c58ca10 /doc/examples | |
| parent | a38c71a5197429ccb1703d9b3c2d943be6017f7d (diff) | |
| parent | 3c393390f10b5ecfb3891fb89f199e2610d9246e (diff) | |
| download | python-apt-75da7640381be141209986156eba32825019add8.tar.gz | |
* merged from mainline
Diffstat (limited to 'doc/examples')
| -rw-r--r-- | doc/examples/inst.py | 5 | ||||
| -rw-r--r-- | doc/examples/sources.py | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/doc/examples/inst.py b/doc/examples/inst.py index 0e91c28f..ff9d452c 100644 --- a/doc/examples/inst.py +++ b/doc/examples/inst.py @@ -29,10 +29,7 @@ cache = apt.Cache(apt.progress.OpTextProgress()) fprogress = apt.progress.TextFetchProgress() iprogress = TextInstallProgress() -pkg = cache["test-package"] -pkg.markUpgrade() -cache.commit(fprogress,iprogress) -sys.exit(1) +pkg = cache["3dchess"] # install or remove, the importend thing is to keep us busy :) if pkg.isInstalled: diff --git a/doc/examples/sources.py b/doc/examples/sources.py index c12c6f15..b48c0ba5 100644 --- a/doc/examples/sources.py +++ b/doc/examples/sources.py @@ -12,4 +12,4 @@ sources.Restart() while sources.Lookup('hello'): print sources.Package, sources.Version, sources.Maintainer, sources.Section, `sources.Binaries` print sources.Files - print sources.Index.ArchiveURI("") + print sources.Index.ArchiveURI(sources.Files[0][2]) |
