mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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:
parent
23923200c3
commit
2194eddf30
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user