index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2016-03-29 16:36:59 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-05-05 13:52:23 +1000 |
commit | 3ed57be450e35c3a3aaa99af722b615a989027c7 (patch) | |
tree | c11081bfe1a7c47bc59796cd616d012a00544c4e /src | |
parent | 4960be7764678783c1ac81e884ad34a535769ad1 (diff) |
-rw-r--r-- | src/pacman/callback.c | 12 |
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 1e1a4cd9..ab3e14f2 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -375,10 +375,14 @@ void cb_event(alpm_event_t *event) void cb_question(alpm_question_t *question) { if(config->print) { - if(question->type == ALPM_QUESTION_INSTALL_IGNOREPKG) { - question->any.answer = 1; - } else { - question->any.answer = 0; + switch(question->type) { + case ALPM_QUESTION_INSTALL_IGNOREPKG: + case ALPM_QUESTION_REPLACE_PKG: + question->any.answer = 1; + break; + default: + question->any.answer = 0; + break; } return; } |