diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-12-01 12:03:16 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-12-01 12:03:16 +0100 |
| commit | c4c1197922edb4f82390f7e0f125be34863d24d3 (patch) | |
| tree | 8d26be69b7b2a44c58f5e90eb33cf10b83114e90 | |
| parent | 4600b96f047154b4adadfc8f862c0f6201d21bdc (diff) | |
| download | python-apt-c4c1197922edb4f82390f7e0f125be34863d24d3.tar.gz | |
* apt/progress/base.py:
- write exception text to stderr to avoid hidding exceptions
like "pre-configure failed" from libapt (thanks to Jean-Baptiste
Lallement)
| -rw-r--r-- | apt/progress/base.py | 4 | ||||
| -rw-r--r-- | debian/changelog | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py index 97375431..4943978c 100644 --- a/apt/progress/base.py +++ b/apt/progress/base.py @@ -27,6 +27,7 @@ import fcntl import os import re import select +import sys import apt_pkg @@ -196,7 +197,8 @@ class InstallProgress(object): os._exit(os.spawnlp(os.P_WAIT, "dpkg", "dpkg", "--status-fd", str(self.write_stream.fileno()), "-i", obj)) - except Exception: + except Exception as e: + sys.stderr.write("%s\n" % e) os._exit(apt_pkg.PackageManager.RESULT_FAILED) self.child_pid = pid diff --git a/debian/changelog b/debian/changelog index 7150adf7..569c335d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -30,6 +30,10 @@ python-apt (0.8.2) UNRELEASED; urgency=low for dep in or_dep_group: do_something() (thanks to Christop Groth) + * apt/progress/base.py: + - write exception text to stderr to avoid hidding exceptions + like "pre-configure failed" from libapt (thanks to Jean-Baptiste + Lallement) [ Tshepang Lekhonkhobe ] * rm usage of camelcase in cache.py doc (closes: #626617) |
