From 2194eddf30bea718c2b5fd6b86d2a626783fc901 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 15 Oct 2013 14:54:57 +1000 Subject: Indicate ignored packages in -Qu output Add "[ignored]" in the "pacman -Qu" output after packages that have their upgrades ignored. Signed-off-by: Allan McRae --- src/pacman/query.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/pacman/query.c b/src/pacman/query.c index bd50b059..8814307c 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"); -- cgit v1.2.3-24-g4f1b