diff options
author | Allan McRae <allan@archlinux.org> | 2013-10-15 06:54:57 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-31 07:20:02 +0100 |
commit | 2194eddf30bea718c2b5fd6b86d2a626783fc901 (patch) | |
tree | 821530337454a096e3a2b0e7a0d9c8751fb2ee35 | |
parent | 23923200c3e34563c8124a1b098bc0866f4e92e5 (diff) | |
download | pacman-2194eddf30bea718c2b5fd6b86d2a626783fc901.tar.gz pacman-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.c | 4 |
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"); |