diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-04-22 23:35:20 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-04-29 20:25:58 -0500 |
commit | 6d2fb6fd815c7f427028b20faa16e531d5cc2aa4 (patch) | |
tree | b9c40b9a6f5a4c38fc7891bae77cefcca0973f33 /src | |
parent | 52a9a5240ac8dc9eef1fc68c1bf4290b76fe09ae (diff) | |
download | pacman-6d2fb6fd815c7f427028b20faa16e531d5cc2aa4.tar.xz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/package.c | 9 |
1 files changed, 8 insertions, 1 deletions
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; |