diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-10 16:19:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-10 16:19:03 +0000 |
commit | cab13c537afddd8915df0c90735c3a7b65fb22d2 (patch) | |
tree | 67d5cc3e17e0bb7492538fc5641234ab476d6853 /urpme | |
parent | f9a92cd5222952f32dec99d5f63086eecfb2cd1b (diff) | |
download | urpmi-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-- | urpme | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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_* |