diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-03 18:03:50 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-03 18:03:50 +0000 |
| commit | 0900e0b357b949f3d87c7a885b4c27e92c2f1d3d (patch) | |
| tree | 785c4a07da95e3b29c49f20f59db460b35fcfdd5 | |
| parent | bf3614bae92b55fd038923002d4f01307dd72e06 (diff) | |
| download | python-apt-0900e0b357b949f3d87c7a885b4c27e92c2f1d3d.tar.gz | |
* added short sleeps at stratic points
| -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 " |
