summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 14:53:28 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 14:53:28 +0000
commit955f51351418847032d75b489b114c5d68d00b84 (patch)
treedfcbc4263749ae6e96c1384773c53a0dcdeb3012
parent9bf693bfd548b06d734390fab130f17a53d5cfdc (diff)
downloadurpmi-955f51351418847032d75b489b114c5d68d00b84.tar
urpmi-955f51351418847032d75b489b114c5d68d00b84.tar.gz
urpmi-955f51351418847032d75b489b114c5d68d00b84.tar.bz2
urpmi-955f51351418847032d75b489b114c5d68d00b84.tar.xz
urpmi-955f51351418847032d75b489b114c5d68d00b84.zip
(do_install) just do not ask for confirmation before removing packages in --auto mode
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi22
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index c843ceb4..aadaf51a 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@
o do not exit in --auto mode at end of installation which prevents
restarting after priority upgrade
o fix using --rpm-root & --urpmi-root
+ o just do not ask for confirmation before removing packages in
+ --auto mode,
Version 6.14 - 23 September 2008
diff --git a/gurpmi2 b/gurpmi2
index 1b7c85cc..918de990 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -216,7 +216,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)