From dffa0654f2eae1c427a74c647d22f0bbd201ccf7 Mon Sep 17 00:00:00 2001 From: Karolina Lindqvist Date: Sat, 29 Dec 2007 12:42:45 -0600 Subject: Fix case where pacman asks for confirmation when it should not There is another case where pacman-git asks for confirmation, when it should not. It is when removing packages. If running with makeworld --noconfirm --rmdeps the question will come to the log file, and never appear on the console, so you can wait forever wondering what is happening. Signed-off-by: Dan McGee --- src/pacman/remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pacman/remove.c b/src/pacman/remove.c index 56837fa2..fde5c737 100644 --- a/src/pacman/remove.c +++ b/src/pacman/remove.c @@ -155,7 +155,8 @@ int pacman_remove(alpm_list_t *targets) list_display(_("Targets:"), lst); FREELIST(lst); /* get confirmation */ - if(yesno(_("\nDo you want to remove these packages? [Y/n] ")) == 0) { + if(!config->noconfirm + && yesno(_("\nDo you want to remove these packages? [Y/n] ")) == 0) { remove_cleanup(); FREELIST(finaltargs); return(1); -- cgit v1.2.3-24-g4f1b