[PATCH] On upgrades, inform the user what action is taking place (#493249).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rpm doesn't tell the callback very much on upgrade cleanups.  We don't know
how many packages it's going to deal with.  We don't know the size of the
package being cleaned up.  We certainly don't know how long it's going to
take.  About the only thing we do know is what package is being processed.
---
 pyanaconda/yuminstall.py |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index b52f37c..34ea792 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -229,14 +229,9 @@ class AnacondaCallback:
 
             self.inProgressPo = None
 
-        elif what in (rpm.RPMCALLBACK_UNINST_START,
-                      rpm.RPMCALLBACK_UNINST_STOP):
-            if self.initWindow is None:
-                self.initWindow = self.pulseWindow(_("Finishing upgrade"),
-                                                   _("Finishing upgrade process.  This may take a little while."),
-                                                   0, pulse=True)
-            else:
-                self.initWindow.pulse()
+        elif what == rpm.RPMCALLBACK_UNINST_START:
+            self.progress.set_text("")
+            self.progress.set_label(_("<b>Cleaning up %s</b>" % h))
 
         elif what in (rpm.RPMCALLBACK_CPIO_ERROR,
                       rpm.RPMCALLBACK_UNPACK_ERROR,
-- 
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux