summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--NEWS3
-rwxr-xr-xgurpmi22
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7407e064..92e240e3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+ o just do not ask for confirmation before removing packages in
+ --auto mode,
+
Version 5.19.3 - 6 October 2008, by Pascal "Pixel" Rigaux
- gurpmi:
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)