summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-07 20:13:07 (EST)
committer P. J. McDermott <pjm@nac.net>2014-03-07 20:13:07 (EST)
commitfae0ab7bc82b8ca4712672e83bdc92fcda629f7d (patch)
tree2b742e46e6994fa0fb1a989007ed47c223542eaa /lib
parent788c4fbe1218c5a39ffb2cf7f175bb9af979eda6 (diff)
feed_add_package(): Add "SHA256sum" field.
Diffstat (limited to 'lib')
-rw-r--r--lib/index.sh3
1 files changed, 2 insertions, 1 deletions
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.