summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/trans.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pacman/trans.c b/src/pacman/trans.c
index b5581d75..ede9b78d 100644
--- a/src/pacman/trans.c
+++ b/src/pacman/trans.c
@@ -167,11 +167,15 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2,
} else {
*response = 0;
}
- } else {
+ } else if(data2) {
snprintf(str, LOG_STR_LEN, _(":: %s requires %s, but it is in IgnorePkg. Install anyway? [Y/n] "),
alpm_pkg_get_name(data1),
alpm_pkg_get_name(data2));
*response = yesno(str);
+ } else {
+ snprintf(str, LOG_STR_LEN, _(":: %s is in IgnorePkg. Install anyway? [Y/n] "),
+ alpm_pkg_get_name(data1));
+ *response = yesno(str);
}
break;
case PM_TRANS_CONV_REMOVE_HOLDPKG: