diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-06 09:34:11 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-08-06 09:34:11 +0000 |
commit | 84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6 (patch) | |
tree | d9798ebcf7ed7aff672c8c195c444ffd9303f965 | |
parent | 2206e13dc29491e3ec625a32874bff108226c37c (diff) | |
download | rpmdrake-84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6.tar rpmdrake-84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6.tar.gz rpmdrake-84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6.tar.bz2 rpmdrake-84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6.tar.xz rpmdrake-84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6.zip |
don't quit when validation was not ok (e.g. when user
doesn't like the "these packages need to be removed
for others to be upgraded", don't quit)
-rwxr-xr-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -480,7 +480,8 @@ Is it ok to continue?", $formatlistpkg->(sort { $a cmp $b } keys %{$urpm->{state gtkpack(new Gtk::HBox(1, 20), gtksignal_connect(new Gtk::Button(but($MODE eq 'remove' ? _("Remove") : _("Install"))), - clicked => sub { $w->{retval} = $validate->(); Gtk->main_quit }), + clicked => sub { $validate->() + and $w->{retval} = 1, Gtk->main_quit }), gtksignal_connect(new Gtk::Button(but(_("Quit"))), clicked => sub { $w->{retval} = 0; Gtk->main_quit }))) )))); |