summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-10-15 14:54:57 +1000
committerAllan McRae <allan@archlinux.org>2013-10-31 16:20:02 +1000
commit2194eddf30bea718c2b5fd6b86d2a626783fc901 (patch)
tree821530337454a096e3a2b0e7a0d9c8751fb2ee35
parent23923200c3e34563c8124a1b098bc0866f4e92e5 (diff)
downloadpacman-2194eddf30bea718c2b5fd6b86d2a626783fc901.tar.xz
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 <allan@archlinux.org>
-rw-r--r--src/pacman/query.c4
1 files changed, 4 insertions, 0 deletions
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");