diff options
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 2 | ||||
| -rw-r--r-- | DistUpgrade/DistUpgradeViewNonInteractive.py | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index f32533db..c8fd5ba4 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -29,6 +29,7 @@ import gobject import pango import sys import logging +import time import apt import apt_pkg @@ -169,6 +170,7 @@ class GtkInstallProgressAdapter(InstallProgress): self.label_status.set_text(self.status) while gtk.events_pending(): gtk.main_iteration() + time.sleep(0.01) class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp): diff --git a/DistUpgrade/DistUpgradeViewNonInteractive.py b/DistUpgrade/DistUpgradeViewNonInteractive.py index 6bd110e4..beb843d2 100644 --- a/DistUpgrade/DistUpgradeViewNonInteractive.py +++ b/DistUpgrade/DistUpgradeViewNonInteractive.py @@ -21,6 +21,7 @@ import apt import logging +import time from DistUpgradeView import DistUpgradeView class NonInteractiveInstallProgress(apt.progress.InstallProgress): @@ -28,6 +29,8 @@ class NonInteractiveInstallProgress(apt.progress.InstallProgress): logging.error("got a error from dpkg for pkg: '%s': '%s'" % (pkg, errormsg)) def conffile(self, current, new): logging.debug("got a conffile-prompt from dpkg for file: '%s'" % current) + def updateInterface(self): + time.sleep(0.1) class NonInteractiveDistUpgradeView(DistUpgradeView): " non-interactive version of the upgrade view " |
