From 6d2fb6fd815c7f427028b20faa16e531d5cc2aa4 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 22 Apr 2012 23:35:20 -0400 Subject: 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 Signed-off-by: Dan McGee --- src/pacman/package.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pacman/package.c b/src/pacman/package.c index 57bf6cef..fe04d407 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -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; -- cgit v1.2.3-70-g09d2