mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
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 <dan@archlinux.org>
This commit is contained in:
parent
fbd88a8212
commit
dffa0654f2
@ -155,7 +155,8 @@ int pacman_remove(alpm_list_t *targets)
|
|||||||
list_display(_("Targets:"), lst);
|
list_display(_("Targets:"), lst);
|
||||||
FREELIST(lst);
|
FREELIST(lst);
|
||||||
/* get confirmation */
|
/* 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();
|
remove_cleanup();
|
||||||
FREELIST(finaltargs);
|
FREELIST(finaltargs);
|
||||||
return(1);
|
return(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user