aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-08-06 09:34:11 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-08-06 09:34:11 +0000
commit84c4ae46efe92f4bde5887b6dcc02dba4f9d3eb6 (patch)
treed9798ebcf7ed7aff672c8c195c444ffd9303f965
parent2206e13dc29491e3ec625a32874bff108226c37c (diff)
downloadrpmdrake-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-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index ad86b926..8968e0d4 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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 })))
))));