From fae0ab7bc82b8ca4712672e83bdc92fcda629f7d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 07 Mar 2014 20:13:07 -0500 Subject: feed_add_package(): Add "SHA256sum" field. --- (limited to 'lib') diff --git a/lib/index.sh b/lib/index.sh index 808431a..ad3826f 100644 --- a/lib/index.sh +++ b/lib/index.sh @@ -44,9 +44,10 @@ feed_add_package() mkdir -p "${feed_hash_idx}/info" tar -xzOf "${base_dir}/${file}" 'control.tar.gz' | \ tar -xzO './control' >"${feed_hash_idx}/info/${pkg}.control" - printf 'Filename: %s\nSize: %s\nMD5sum: %s\n\n' \ + printf 'Filename: %s\nSize: %s\nMD5sum: %s\nSHA256sum: %s\n\n' \ "../../../../../../${file}" "${size}" \ "$(md5sum "${base_dir}/${file}" | sed 's/ .*$//')" \ + "$(sha256sum "${base_dir}/${file}" | sed 's/ .*$//')" \ >>"${feed_hash_idx}/info/${pkg}.control" # Mark feed index fragment as outdated. -- cgit v0.9.1