summaryrefslogtreecommitdiff
path: root/apt/progress
diff options
context:
space:
mode:
authorSebastian Heinlein <renate@ubuntu.virtual>2009-05-31 01:03:54 +0200
committerSebastian Heinlein <renate@ubuntu.virtual>2009-05-31 01:03:54 +0200
commit8ca43939eb2f608cf0250d90894b470e785713b9 (patch)
treec32da1d003c2e6c50ee17b83a55328de37b71183 /apt/progress
parentb7f2997fc11283801260f54e9d84610265279aa0 (diff)
downloadpython-apt-8ca43939eb2f608cf0250d90894b470e785713b9.tar.gz
Extract the package name from the status message
Diffstat (limited to 'apt/progress')
-rw-r--r--apt/progress/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/progress/__init__.py b/apt/progress/__init__.py
index 47d2a861..fddc7486 100644
--- a/apt/progress/__init__.py
+++ b/apt/progress/__init__.py
@@ -399,10 +399,11 @@ class DpkgInstallProgress(InstallProgress):
print "got garbage from dpkg: '%s'" % self.read
self.read = ""
break
+ pkg_name = statusl[1].strip()
status = statusl[2].strip()
#print status
if status == "error":
- self.error(self.debname, status)
+ self.error(pkg_name, status)
elif status == "conffile-prompt":
# we get a string like this:
# 'current-conffile' 'new-conffile' useredited distedited