summaryrefslogtreecommitdiff
path: root/apt/progress
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-12-01 13:32:42 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-12-01 13:32:42 +0100
commitc8bfdda85fbd2df250fbc6d3faeb2bd5875a77d6 (patch)
treea4ae366f0d673156b74af8c6642b4d3a260257cf /apt/progress
parentc4c1197922edb4f82390f7e0f125be34863d24d3 (diff)
downloadpython-apt-c8bfdda85fbd2df250fbc6d3faeb2bd5875a77d6.tar.gz
py3 fixes/clean
Diffstat (limited to 'apt/progress')
-rw-r--r--apt/progress/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt/progress/base.py b/apt/progress/base.py
index 4943978c..c2a9a9c8 100644
--- a/apt/progress/base.py
+++ b/apt/progress/base.py
@@ -192,12 +192,14 @@ class InstallProgress(object):
# and the execution continues in the
# parent code leading to very confusing bugs
try:
+ raise Exception("foo")
os._exit(obj.do_install(self.write_stream.fileno()))
except AttributeError:
os._exit(os.spawnlp(os.P_WAIT, "dpkg", "dpkg", "--status-fd",
str(self.write_stream.fileno()), "-i",
obj))
except Exception as e:
+ os.write(self.writefd, "pmerror:::%s" % e)
sys.stderr.write("%s\n" % e)
os._exit(apt_pkg.PackageManager.RESULT_FAILED)