diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-21 20:39:09 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-21 20:39:09 +0200 |
| commit | 9b2e18e4d1b95ef505f87561ac06aba50ada3609 (patch) | |
| tree | b671b576d80b19d60f539788a74feceecf9031e8 /doc/examples/inst.py | |
| parent | 8a67219266605b39a522aee08bf7cd3b0b6c3a8c (diff) | |
| download | python-apt-9b2e18e4d1b95ef505f87561ac06aba50ada3609.tar.gz | |
doc/examples/*.py: Update examples to the new API
Closes: #639022
Diffstat (limited to 'doc/examples/inst.py')
| -rw-r--r-- | doc/examples/inst.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/inst.py b/doc/examples/inst.py index 5a7fc993..dd39c25b 100644 --- a/doc/examples/inst.py +++ b/doc/examples/inst.py @@ -36,12 +36,12 @@ iprogress = TextInstallProgress() pkg = cache["3dchess"] # install or remove, the importend thing is to keep us busy :) -if pkg.isInstalled: +if pkg.is_installed: print "Going to delete %s" % pkg.name - pkg.markDelete() + pkg.mark_delete() else: print "Going to install %s" % pkg.name - pkg.markInstall() + pkg.mark_install() res = cache.commit(fprogress, iprogress) print res |
