From 62991a730486da90fea53573adc06e2d381a9219 Mon Sep 17 00:00:00 2001 From: guinux Date: Wed, 15 Jan 2014 14:26:21 +0100 Subject: [PATCH] fix an issue --- pamac-updater.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pamac-updater.py b/pamac-updater.py index 82fe05b..5b018d3 100755 --- a/pamac-updater.py +++ b/pamac-updater.py @@ -166,7 +166,9 @@ def on_Updater_ApplyButton_clicked(*args): UpdaterWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH)) while Gtk.events_pending(): Gtk.main_iteration() - transaction.sysupgrade(show_updates = False) + error = transaction.sysupgrade(show_updates = False) + if error: + handle_error(error) def on_Updater_RefreshButton_clicked(*args): UpdaterWindow.get_window().set_cursor(Gdk.Cursor(Gdk.CursorType.WATCH))