summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-16 09:02:58 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-16 09:02:58 +0000
commitc4bba072f5a8f0dc3f223cbe4c2630925d32fe14 (patch)
tree8cb4c5ca12d2ef6594ff19671f7f5fb166cd33eb /gurpmi2
parent23b10e3ed724431b1af3f4c6353e34933c610df8 (diff)
downloadurpmi-c4bba072f5a8f0dc3f223cbe4c2630925d32fe14.tar
urpmi-c4bba072f5a8f0dc3f223cbe4c2630925d32fe14.tar.gz
urpmi-c4bba072f5a8f0dc3f223cbe4c2630925d32fe14.tar.bz2
urpmi-c4bba072f5a8f0dc3f223cbe4c2630925d32fe14.tar.xz
urpmi-c4bba072f5a8f0dc3f223cbe4c2630925d32fe14.zip
support other distros which do not have exception support in gtk+ callbacks
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi27
1 files changed, 6 insertions, 1 deletions
diff --git a/gurpmi2 b/gurpmi2
index de7a7bfe..d1d3be26 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -30,7 +30,12 @@ our $test = 0;
our $use_provides = 1;
my $progressbar_size = 450;
-Glib->enable_exceptions2;
+
+# For other distros w/o exception support:
+eval { Glib->enable_exceptions2 };
+if (my $err = $@) {
+ warn "Error: $err\n";
+}
#- GUI globals
my ($mainw, $mainbox);