diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-16 20:06:14 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-16 20:06:14 +0200 |
| commit | 337c885e7dd531858c35b256d974989bac6463df (patch) | |
| tree | fdd82757c31340096016125dc7f5e06d87aa9d6c /apt/progress | |
| parent | 49c10e3b9f6760280761f1255f3182637ba0ac9e (diff) | |
| download | python-apt-337c885e7dd531858c35b256d974989bac6463df.tar.gz | |
* apt/*.py: Initial rename work for Bug#481061
A new module, apt.deprecation, is introduced containing functions and
classes which assist in the deprecation.
The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set
by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7).
The names are changed, and compatibility functions are enabled if
bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with
backward compatibility fixes.
This commit changes the apt and aptsources packages, the apt_pkg and
apt_inst extensions will be the next renames.
Diffstat (limited to 'apt/progress')
| -rw-r--r-- | apt/progress/gtk2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt/progress/gtk2.py b/apt/progress/gtk2.py index f872e34f..36d459bc 100644 --- a/apt/progress/gtk2.py +++ b/apt/progress/gtk2.py @@ -422,10 +422,10 @@ def _test(): win.show() cache = apt.cache.Cache(apt_progress.open) pkg = cache["xterm"] - if pkg.isInstalled: - pkg.markDelete() + if pkg.is_installed: + pkg.mark_delete() else: - pkg.markInstall() + pkg.mark_install() apt_progress.show_terminal(True) try: cache.commit(apt_progress.fetch, apt_progress.install) |
