diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-03-16 09:03:01 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-03-16 09:03:01 +0000 |
commit | a2f7c160d209f8f30441a5d8aedd7d52c9fe01ea (patch) | |
tree | 1acf0351101f473fec0521aa8ebda6e6be3e486b /gurpmi | |
parent | c4bba072f5a8f0dc3f223cbe4c2630925d32fe14 (diff) | |
download | urpmi-a2f7c160d209f8f30441a5d8aedd7d52c9fe01ea.tar urpmi-a2f7c160d209f8f30441a5d8aedd7d52c9fe01ea.tar.gz urpmi-a2f7c160d209f8f30441a5d8aedd7d52c9fe01ea.tar.bz2 urpmi-a2f7c160d209f8f30441a5d8aedd7d52c9fe01ea.tar.xz urpmi-a2f7c160d209f8f30441a5d8aedd7d52c9fe01ea.zip |
support exceptions in callback in main wrapper too
Diffstat (limited to 'gurpmi')
-rwxr-xr-x | gurpmi | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |