summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-29 04:03:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-29 04:03:33 +0000
commit22a2cb90db7cc5c7b7b1ba95b0e5713e5bad311a (patch)
tree06e4fc175bff19449a1a847084fa79a7c2c8a9fa
parentbdba29162d46b9cfd7bfe3b8bb41bcf55f2d9a52 (diff)
downloadurpmi-22a2cb90db7cc5c7b7b1ba95b0e5713e5bad311a.tar
urpmi-22a2cb90db7cc5c7b7b1ba95b0e5713e5bad311a.tar.gz
urpmi-22a2cb90db7cc5c7b7b1ba95b0e5713e5bad311a.tar.bz2
urpmi-22a2cb90db7cc5c7b7b1ba95b0e5713e5bad311a.tar.xz
urpmi-22a2cb90db7cc5c7b7b1ba95b0e5713e5bad311a.zip
Allow to cancel insertion of new media in urpmi --gui
(bug 16344)
-rwxr-xr-xurpmi5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpmi b/urpmi
index f03ab716..130a705d 100755
--- a/urpmi
+++ b/urpmi
@@ -521,9 +521,8 @@ $urpm->copy_packages_of_removable_media(
#- probably run from a drak tool
my $gmessage = find { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage';
if ($gmessage) {
- my $m = to_utf8("\n$msg\n\n$msg2");
- system($gmessage, $m);
- return 1;
+ my $m = to_utf8("\n$msg\n");
+ return system($gmessage, '-buttons', N("Ok") . ':0,' . N("Cancel") . ':1', $m);
}
}
return defined message_input("$msg\n$msg2 ");