From 8856146d71cb4cc512b0cf3414fbc231635822d3 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Sun, 6 Jul 2008 01:18:11 +0200 Subject: Swap parameters on PM_TRANS_CONV_INSTALL_IGNOREPKG callback function PM_TRANS_CONV_INSTALL_IGNOREPKG callback function can get 2 params: foo, bar in this order (packages), bar can be NULL. Old API: foo, NULL: Do you want to install foo from IgnorePkg? foo, bar: foo requires bar from IgnorePkg. Do you want to install bar? New API: foo, bar: Do you want to install foo from IgnorePkg? (If bar!=NULL:) bar requires it. Signed-off-by: Nagy Gabor Signed-off-by: Dan McGee --- src/pacman/callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pacman/callback.c b/src/pacman/callback.c index ff125c36..f968873f 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -254,8 +254,8 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2, if(data2) { /* TODO we take this route based on data2 being not null? WTF */ *response = yesno(1, _(":: %s requires installing %s from IgnorePkg/IgnoreGroup. Install anyway?"), - alpm_pkg_get_name(data1), - alpm_pkg_get_name(data2)); + alpm_pkg_get_name(data2), + alpm_pkg_get_name(data1)); } else { *response = yesno(1, _(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"), alpm_pkg_get_name(data1)); -- cgit v1.2.3-70-g09d2