summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/progress/base.py4
-rw-r--r--debian/changelog4
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)