[pacman-dev] [PATCH v2] Treat packages to be printed as non-ignored

Connor Behan connor.behan at gmail.com
Thu Mar 14 01:51:35 EDT 2013


Calling pacman -Sp is guaranteed not to install a package. So the user's
IgnorePkg pref is still respected regardless of whether or not we print
the mirror location. Therefore we might as well do so to give as much
information as possible. Also fixes an edge case with devtools.

Signed-off-by: Connor Behan <connor.behan at gmail.com>
---
 src/pacman/conf.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 3f1b1c3..c982df5 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -1010,6 +1010,13 @@ int parseconfig(const char *file)
 	if((ret = _parseconfig(file, &section, 1, 0))) {
 		return ret;
 	}
+	
+	/* #FS#34066 - Querying URLs for packages (even ignored ones) should succeed */
+	if(config->print) {
+		config->ignorepkg = NULL;
+		config->ignoregrp = NULL;
+	}
+	
 	if((ret = setup_libalpm())) {
 		return ret;
 	}
-- 
1.8.1.5



More information about the pacman-dev mailing list