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/gui-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/gui-inst.py')
| -rwxr-xr-x | doc/examples/gui-inst.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/gui-inst.py b/doc/examples/gui-inst.py index 68f06fc0..654f3794 100755 --- a/doc/examples/gui-inst.py +++ b/doc/examples/gui-inst.py @@ -18,10 +18,10 @@ if __name__ == "__main__": win.show() cache = apt.cache.Cache(progress.open) - if cache["2vcard"].isInstalled: - cache["2vcard"].markDelete() + if cache["2vcard"].is_installed: + cache["2vcard"].mark_delete() else: - cache["2vcard"].markInstall() + cache["2vcard"].mark_install() progress.show_terminal(expanded=True) cache.commit(progress.fetch, progress.install) gtk.main() |
