summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 14:53:45 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 14:53:45 +0000
commit5228ce916ad77c85e58015f3b6146d56b64498d7 (patch)
treee8f21fb9af011b065808ac30a857159a2e645338 /gurpmi2
parent8336cd90f364bd63139b99779d72f61b083613e4 (diff)
downloadurpmi-5228ce916ad77c85e58015f3b6146d56b64498d7.tar
urpmi-5228ce916ad77c85e58015f3b6146d56b64498d7.tar.gz
urpmi-5228ce916ad77c85e58015f3b6146d56b64498d7.tar.bz2
urpmi-5228ce916ad77c85e58015f3b6146d56b64498d7.tar.xz
urpmi-5228ce916ad77c85e58015f3b6146d56b64498d7.zip
(do_install) just do not ask for confirmation before removing packages in --auto mode
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi22
1 files changed, 1 insertions, 1 deletions
diff --git a/gurpmi2 b/gurpmi2
index 211ffd45..a2a586a6 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -208,7 +208,7 @@ sub ask_continue_blocking {
sub do_install {
wait_label();
my @ask_remove = urpm::select::removed_packages($urpm, $state);
- @ask_remove
+ @ask_remove && !$gurpmi::options{auto};
? ask_continue(N(
"The following packages have to be removed for others to be upgraded:\n%s\nContinue installation anyway?",
urpm::select::translate_why_removed($urpm, $state, @ask_remove)