From f57f8d33862050acc8d131710c100ba47877e675 Mon Sep 17 00:00:00 2001
From: Bryan Ischo <bryan@ischo.com>
Date: Sun, 22 Feb 2009 23:25:32 +1300
Subject: Don't prompt the user for unignore of IgnorePkg/IgnoreGroup packages

Don't prompt the user for unignore of IgnorePkg/IgnoreGroup packages,
except for packages explicitly listed for sync by the user.  This
eliminates many unnecessary prompts when IgnorePkg/IgnoreGroup is
used.

Signed-off-by: Bryan Ischo <bryan@ischo.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
---
 src/pacman/callback.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

(limited to 'src')

diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 10e26188..e1cad20f 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -248,15 +248,8 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2,
 {
 	switch(event) {
 		case PM_TRANS_CONV_INSTALL_IGNOREPKG:
-			if(data2) {
-				/* TODO we take this route based on data2 being not null? WTF */
-				*response = yesno(_(":: %s requires installing %s from IgnorePkg/IgnoreGroup. Install anyway?"),
-						alpm_pkg_get_name(data2),
-						alpm_pkg_get_name(data1));
-			} else {
-				*response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"),
-						alpm_pkg_get_name(data1));
-			}
+			*response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"),
+							  alpm_pkg_get_name(data1));
 			break;
 		case PM_TRANS_CONV_REPLACE_PKG:
 			*response = yesno(_(":: Replace %s with %s/%s?"),
-- 
cgit v1.2.3-70-g09d2