summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2004-02-09 17:07:26 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2004-02-09 17:07:26 +0000
commitd52a97db192af88bab7de2f84bfed6637aeb9261 (patch)
tree084f15244d280ad8a646f30c72421bf00ccfbf77
parent92f83ee960355ccdc443e073423aa4b1b55e8d2d (diff)
downloadurpmi-d52a97db192af88bab7de2f84bfed6637aeb9261.tar
urpmi-d52a97db192af88bab7de2f84bfed6637aeb9261.tar.gz
urpmi-d52a97db192af88bab7de2f84bfed6637aeb9261.tar.bz2
urpmi-d52a97db192af88bab7de2f84bfed6637aeb9261.tar.xz
urpmi-d52a97db192af88bab7de2f84bfed6637aeb9261.zip
allow more buttons in gmessage
-rwxr-xr-xurpmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 9b8e5721..d5634287 100755
--- a/urpmi
+++ b/urpmi
@@ -142,7 +142,7 @@ sub gmessage {
my ($msg, %params) = @_;
my $ok = to_utf8(N("Ok"));
my $cancel = to_utf8(N("Cancel"));
- my $buttons = $params{ok_only} ? "$ok:0" : "$ok:0,$cancel:2";
+ my $buttons = ($params{ok_only} ? "$ok:0" : "$ok:0,$cancel:2") . $params{add_buttons};
$msg = to_utf8($msg);
`gmessage -default "$ok" -buttons "$buttons" "$msg"`;
}