summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-10 16:19:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-10 16:19:03 +0000
commitcab13c537afddd8915df0c90735c3a7b65fb22d2 (patch)
tree67d5cc3e17e0bb7492538fc5641234ab476d6853 /urpmi.addmedia
parentf9a92cd5222952f32dec99d5f63086eecfb2cd1b (diff)
downloadurpmi-cab13c537afddd8915df0c90735c3a7b65fb22d2.tar
urpmi-cab13c537afddd8915df0c90735c3a7b65fb22d2.tar.gz
urpmi-cab13c537afddd8915df0c90735c3a7b65fb22d2.tar.bz2
urpmi-cab13c537afddd8915df0c90735c3a7b65fb22d2.tar.xz
urpmi-cab13c537afddd8915df0c90735c3a7b65fb22d2.zip
- urpmi, urpme
o do not prompt questions if not waiting for user answer (for urpmi --force or urpme --force) create message_input_() which deprecated message_input(), $o_default_input is dumb IMO
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 3a1f6ed1..acbd852a 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -127,9 +127,8 @@ if ($options{distrib}) {
my ($medianame, $add_by_default) = @_;
my $yesexpr = N("Yy");
$add_by_default = 1 if $options{allmedia};
- my $answer = message_input(
+ my $answer = message_input_(
N("\nDo you want to add media '%s'", $medianame) . ($add_by_default ? N(" (Y/n) ") : N(" (y/N) ")),
- undef,
boolean => 1,
);
return $answer ? $answer =~ /[$yesexpr]/ : $add_by_default;