summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-12 03:15:15 +0200
committerDan McGee <dan@archlinux.org>2011-08-15 19:11:55 +0200
commitebb2e36cc4c40d11689a44a2503df40fa96e8fc1 (patch)
treeaa75da8cd9fc082b7b5278ed783bb8ff98f818f9 /src
parent31f2e0cba3281660a2a3ffc6f902a7019cb4699b (diff)
downloadpacman-ebb2e36cc4c40d11689a44a2503df40fa96e8fc1.tar.gz
pacman-ebb2e36cc4c40d11689a44a2503df40fa96e8fc1.tar.xz
Load and allow access to sha256sum
This adds a field in the package struct for this checksum type as well as allowing access via the API to it. The frontend is now able to display any read value. Note that this does not implement any use or verification of the value internally. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 27b691e2..33ccbd41 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -135,6 +135,7 @@ void dump_pkg_full(alpm_pkg_t *pkg, enum pkg_from from, int extra)
if(from == PKG_FROM_SYNCDB) {
string_display(_("MD5 Sum :"), alpm_pkg_get_md5sum(pkg));
+ string_display(_("SHA256 Sum :"), alpm_pkg_get_sha256sum(pkg));
string_display(_("Signatures :"), alpm_pkg_get_base64_sig(pkg) ? _("Yes") : _("No"));
}
if(from == PKG_FROM_FILE) {