pacman/package.c: show checksums with -Sii

These were removed entirely by f34864cc9e, but some people (myself
included) still find them useful. Revive these details, but "demote"
them, so that they're only displayed when extra sync data is requested.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2012-04-22 23:35:20 -04:00 committed by Dan McGee
parent 52a9a5240a
commit 6d2fb6fd81
1 changed files with 8 additions and 1 deletions

View File

@ -175,7 +175,14 @@ void dump_pkg_full(alpm_pkg_t *pkg, int extra)
alpm_pkg_has_scriptlet(pkg) ? _("Yes") : _("No"), cols);
}
list_display(_("Validated By :"), validation, cols);
if(from == ALPM_PKG_FROM_SYNCDB && extra) {
string_display(_("MD5 Sum :"), alpm_pkg_get_md5sum(pkg), cols);
string_display(_("SHA256 Sum :"), alpm_pkg_get_sha256sum(pkg), cols);
string_display(_("Signatures :"),
alpm_pkg_get_base64_sig(pkg) ? _("Yes") : _("None"), cols);
} else {
list_display(_("Validated By :"), validation, cols);
}
if(from == ALPM_PKG_FROM_FILE) {
alpm_siglist_t siglist;