summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-01-15 00:48:31 +0100
committerDan McGee <dan@archlinux.org>2008-01-15 04:38:36 +0100
commit307f4d73015ee9fda6ae8c76d8bad14c3a48fb6d (patch)
tree23810d984568c801a147ecfd00bee46e8e53ccc7
parentfd86c62db856cea7cdd8edac2e721543dd1ebf04 (diff)
downloadpacman-307f4d73015ee9fda6ae8c76d8bad14c3a48fb6d.tar.gz
pacman-307f4d73015ee9fda6ae8c76d8bad14c3a48fb6d.tar.xz
Revert "Fix case where pacman asks for confirmation when it should not"
yesno function already handles noconfirm. No need to do it twice. This reverts commit dffa0654f2eae1c427a74c647d22f0bbd201ccf7.
-rw-r--r--src/pacman/remove.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index fde5c737..56837fa2 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -155,8 +155,7 @@ int pacman_remove(alpm_list_t *targets)
list_display(_("Targets:"), lst);
FREELIST(lst);
/* get confirmation */
- if(!config->noconfirm
- && yesno(_("\nDo you want to remove these packages? [Y/n] ")) == 0) {
+ if(yesno(_("\nDo you want to remove these packages? [Y/n] ")) == 0) {
remove_cleanup();
FREELIST(finaltargs);
return(1);