[pacman-dev] [PATCH v3] Indicate ignored packages in -Qu output

Allan McRae allan at archlinux.org
Tue Oct 15 22:29:49 EDT 2013


Add "[ignored]" in the "pacman -Qu" output after packages that have their
upgrades ignored.

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 src/pacman/query.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/pacman/query.c b/src/pacman/query.c
index bd50b05..8814307 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -324,6 +324,10 @@ static int display(alpm_pkg_t *pkg)
 			if(config->op_q_upgrade) {
 				alpm_pkg_t *newpkg = alpm_sync_newversion(pkg, alpm_get_syncdbs(config->handle));
 				printf(" -> %s%s%s", colstr->version, alpm_pkg_get_version(newpkg), colstr->nocolor);
+
+				if(alpm_pkg_should_ignore(config->handle, pkg)) {
+					printf(" %s", _("[ignored]"));
+				}
 			}
 
 			printf("\n");
-- 
1.8.4



More information about the pacman-dev mailing list