summaryrefslogtreecommitdiffstats
path: root/pyanaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-07-16 12:44:42 -0400
committerChris Lumens <clumens@redhat.com>2012-07-16 12:44:42 -0400
commit43ecb7bb943195842a031175eb967c03476e36ae (patch)
tree3706eca4af719bc298e203624ea55ce58d34b4d3 /pyanaconda
parent2ea1dece8e2121f695758850d9ca3c3bf6f75231 (diff)
downloadanaconda-43ecb7bb943195842a031175eb967c03476e36ae.tar.gz
anaconda-43ecb7bb943195842a031175eb967c03476e36ae.tar.xz
anaconda-43ecb7bb943195842a031175eb967c03476e36ae.zip
Set a new progress message as soon as the last package is done.
We don't get any notification that the post-trans has started, so this is the best we can do. At least now it doesn't look like the last package is taking forever to install.
Diffstat (limited to 'pyanaconda')
-rw-r--r--pyanaconda/packaging/yumpayload.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 8ba78d22c..8aea2fb57 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1169,6 +1169,12 @@ class RPMCallback(object):
os.unlink(package_path)
except OSError as e:
log.debug("unable to remove file %s" % e.strerror)
+
+ # rpm doesn't tell us when it's started post-trans stuff which can
+ # take a very long time. So when it closes the last package, just
+ # display the message.
+ if self.completed_actions == self.total_actions:
+ progress.send_message(_("Performing post-install setup tasks"))
elif event == rpm.RPMCALLBACK_UNINST_START:
# update status that we're cleaning up %key
#progress.set_text(_("Cleaning up %s" % key))