summaryrefslogtreecommitdiff
path: root/UpdateManager/UpdateManager.py
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-12 13:51:52 +0100
committerMichael Vogt <egon@top>2005-12-12 13:51:52 +0100
commit10eb3c1edcf3f8a5972ea22d43dd23d0df460323 (patch)
tree2f77d66ff2cff0912db0f75fbfb3980af946b2d6 /UpdateManager/UpdateManager.py
parentfe1f349881429c779acf66104b7cf59279b8bf9a (diff)
downloadpython-apt-10eb3c1edcf3f8a5972ea22d43dd23d0df460323.tar.gz
* improved the error reporting on a failed update
Diffstat (limited to 'UpdateManager/UpdateManager.py')
-rw-r--r--UpdateManager/UpdateManager.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 3795f398..cc8e1f88 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -471,8 +471,25 @@ class UpdateManager(SimpleGladeApp):
dialog = gtk.MessageDialog(self.window_main, 0, gtk.MESSAGE_ERROR,
gtk.BUTTONS_OK,"")
dialog.set_markup("<span weight=\"bold\" size=\"larger\">%s</span>"%\
- _("Error updating"))
- dialog.format_secondary_text("%s" % msg)
+ _("Error reloading"))
+ dialog.format_secondary_text(_("A error occured during the package "
+ "list reload. Please see the below "
+ "information for details what went "
+ "wrong."))
+ dialog.set_border_width(6)
+ dialog.set_size_request(width=500,height=-1)
+ scroll = gtk.ScrolledWindow()
+ scroll.set_size_request(-1,200)
+ scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
+ text = gtk.TextView()
+ text.set_editable(False)
+ text.set_cursor_visible(False)
+ text.set_wrap_mode(gtk.WRAP_WORD)
+ buf = text.get_buffer()
+ buf.set_text("%s" % msg)
+ scroll.add(text)
+ dialog.vbox.pack_start(scroll)
+ scroll.show_all()
dialog.run()
dialog.destroy()
self.fillstore()