summaryrefslogtreecommitdiff
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-11 20:15:15 -0500
committerDan McGee <dan@archlinux.org>2011-08-15 12:11:55 -0500
commitebb2e36cc4c40d11689a44a2503df40fa96e8fc1 (patch)
treeaa75da8cd9fc082b7b5278ed783bb8ff98f818f9 /lib/libalpm/be_sync.c
parent31f2e0cba3281660a2a3ffc6f902a7019cb4699b (diff)
downloadpacman-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 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index d4c71a8e..069e39dd 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -543,8 +543,7 @@ static int sync_db_read(alpm_db_t *db, struct archive *archive,
} else if(strcmp(line, "%MD5SUM%") == 0) {
READ_AND_STORE(pkg->md5sum);
} else if(strcmp(line, "%SHA256SUM%") == 0) {
- /* we don't do anything with this value right now */
- READ_NEXT();
+ READ_AND_STORE(pkg->sha256sum);
} else if(strcmp(line, "%PGPSIG%") == 0) {
READ_AND_STORE(pkg->base64_sig);
} else if(strcmp(line, "%REPLACES%") == 0) {