summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi6
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0339d51f..985beaa3 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
progress & errors
o enhanced doc
- gurpmi:
+ o support exceptions in callback in main wrapper too
o support other distros which do not handle exceptions in gtk+ callbacks
o use new exception management
diff --git a/gurpmi b/gurpmi
index fe05f549..f44bf66f 100755
--- a/gurpmi
+++ b/gurpmi
@@ -14,6 +14,12 @@ use Gtk2;
use gurpmi;
use urpm::util;
+# For other distros w/o exception support:
+eval { Glib->enable_exceptions2 };
+if (my $err = $@) {
+ warn "Error: $err\n";
+}
+
sub usage() { gurpmi::usage() }
#- globals