summaryrefslogtreecommitdiffstats
path: root/urpme
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 /urpme
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 'urpme')
-rw-r--r--urpme2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpme b/urpme
index 95214b0e..da13149d 100644
--- a/urpme
+++ b/urpme
@@ -128,7 +128,7 @@ if ($test && $auto) {
"To satisfy dependencies, the following %d packages will be removed",
scalar(@toremove), scalar(@toremove)) . sprintf(" (%s)", formatXiB(-$urpm->selected_size($state)));
print STDOUT "$msg:\n$list\n";
- message_input(P("Remove %d package?", "Remove %d packages?", scalar(@toremove), scalar(@toremove)) . N(" (y/N) "), $force && $yesexpr, boolean => 1) =~ /[$yesexpr]/ or exit 0;
+ $force || message_input_(P("Remove %d package?", "Remove %d packages?", scalar(@toremove), scalar(@toremove)) . N(" (y/N) "), boolean => 1) =~ /[$yesexpr]/ or exit 0;
}
#- Warning : the following message is parsed in urpm::parallel_*