summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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.