diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-14 13:02:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-14 13:02:05 +0000 |
commit | 171659fd0d36e5784221cd2a1237bc4dff308143 (patch) | |
tree | 820ea4e9c3c9b0dbf7c1f175155e36726ffe2087 /gurpmi.pm | |
parent | 1f486c5dbe9316a357526986d04392ecc5fac283 (diff) | |
download | urpmi-171659fd0d36e5784221cd2a1237bc4dff308143.tar urpmi-171659fd0d36e5784221cd2a1237bc4dff308143.tar.gz urpmi-171659fd0d36e5784221cd2a1237bc4dff308143.tar.bz2 urpmi-171659fd0d36e5784221cd2a1237bc4dff308143.tar.xz urpmi-171659fd0d36e5784221cd2a1237bc4dff308143.zip |
(cancel_n_quit) notify callers when installation is canceled (#40358)
Diffstat (limited to 'gurpmi.pm')
-rw-r--r-- | gurpmi.pm | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -31,7 +31,7 @@ URPM::bind_rpm_textdomain_codeset(); use Exporter; our @ISA = qw(Exporter); -our @EXPORT = qw(create_scrolled_window fatal but quit add_button_box new_label N); +our @EXPORT = qw(create_scrolled_window fatal but cancel_n_quit quit add_button_box new_label N); urpm::select::add_packages_to_priority_upgrade_list('gurpmi'); @@ -112,6 +112,11 @@ sub quit () { } } +sub cancel_n_quit () { + Gtk2->main_quit; + exit(1); +} + sub add_button_box { my ($vbox, @buttons) = @_; my $hbox = Gtk2::HButtonBox->new; |