summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-08-29 21:45:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-08-29 21:45:41 +0200
commit9a8c25937bfac8242b7eef9f3f815a273392606a (patch)
treef785d8226684d01eb37b11a9c969ad786dbf1f00 /DistUpgrade/DistUpgradeViewGtk.py
parentaefb2cce102a32fa34dd0034cc99d4ee272e5e5f (diff)
downloadpython-apt-9a8c25937bfac8242b7eef9f3f815a273392606a.tar.gz
* DistUpgrade/*:
- more useful error reporting, includes advice about the file that are required to add to the bugreport (/var/log/dist-upgrade/*)
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py
index 2095a416..fb774c5a 100644
--- a/DistUpgrade/DistUpgradeViewGtk.py
+++ b/DistUpgrade/DistUpgradeViewGtk.py
@@ -73,12 +73,13 @@ class GtkCdromProgressAdapter(apt.progress.CdromProgress):
if text:
self.status.set_text(text)
self.progress.set_fraction(step/float(self.totalSteps))
+ while gtk.events_pending():
+ gtk.main_iteration()
def askCdromName(self):
return (False, "")
def changeCdrom(self):
return False
-
class GtkOpProgress(apt.progress.OpProgress):
def __init__(self, progressbar):
self.progressbar = progressbar
@@ -197,7 +198,8 @@ class GtkInstallProgressAdapter(InstallProgress):
#self.expander_terminal.set_expanded(True)
self.parent.dialog_error.set_transient_for(self.parent.window_main)
summary = _("Could not install '%s'" % pkg)
- msg = _("The upgrade aborts now. Please report this bug.")
+ msg = _("The upgrade aborts now. Please report this bug against the 'update-manager' "
+ "package and include the files in /var/log/dist-upgrade/ in the bugreport.")
markup="<big><b>%s</b></big>\n\n%s" % (summary, msg)
self.parent.dialog_error.realize()
self.parent.dialog_error.window.set_functions(gtk.gdk.FUNC_MOVE)