diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-01-15 15:42:44 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-01-15 15:42:44 +0100 |
| commit | 6dae07e834445c193f392cf53a252b83c68f2bcd (patch) | |
| tree | d660e8ad24c9c1bf028526606ddc02b7433dcf09 /apt/progress | |
| parent | fec0cfe1617ccfcbb7b291ba00dedacdd3f133f7 (diff) | |
| download | python-apt-6dae07e834445c193f392cf53a252b83c68f2bcd.tar.gz | |
Make all class-level constants have uppercase names.
Diffstat (limited to 'apt/progress')
| -rw-r--r-- | apt/progress/base.py | 2 | ||||
| -rw-r--r-- | apt/progress/text.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py index fd6bc475..adb39e93 100644 --- a/apt/progress/base.py +++ b/apt/progress/base.py @@ -192,7 +192,7 @@ class InstallProgress(object): os._exit(os.spawnlp(os.P_WAIT, "dpkg", "dpkg", "--status-fd", str(self.writefd.fileno()), "-i", obj)) except Exception: - os._exit(apt_pkg.PackageManager.result_failed) + os._exit(apt_pkg.PackageManager.RESULT_FAILED) self.child_pid = pid res = self.wait_child() diff --git a/apt/progress/text.py b/apt/progress/text.py index 3a6d3e65..796577e2 100644 --- a/apt/progress/text.py +++ b/apt/progress/text.py @@ -125,7 +125,7 @@ class AcquireProgress(base.AcquireProgress, TextProgress): def fail(self, item): """Called when an item is failed.""" base.AcquireProgress.fail(self, item) - if item.owner.status == item.owner.stat_done: + if item.owner.status == item.owner.STAT_DONE: self._write(_("Ign ") + item.description) else: self._write(_("Err ") + item.description) |
