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>
This commit is contained in:
Allan McRae 2013-10-15 14:54:57 +10:00
parent 23923200c3
commit 2194eddf30
1 changed files with 4 additions and 0 deletions

View File

@ -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");