diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-09-02 19:39:23 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2018-09-02 19:39:23 (EDT) |
commit | 4201b6f84e54a19b1d2e9c31ff44f32334ab0ced (patch) | |
tree | 685b0ee8397a170cdddfe4b62a9c7a932e6e3177 /src/index.sh | |
parent | 1b84ff941776877dbd15a06fe3da22422ad3a0a0 (diff) |
index, garbage: Use ${MD5SUM}, ${SHA256SUM}, ${GZIP}, and ${DATE}
Diffstat (limited to 'src/index.sh')
-rw-r--r-- | src/index.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/index.sh b/src/index.sh index 5fad795..ea479d5 100644 --- a/src/index.sh +++ b/src/index.sh @@ -47,8 +47,8 @@ feed_add_package() tar -xzO './control' >"${feed_hash_idx}/info/${pkg}.control" 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/ .*$//')" \ + "$("${MD5SUM}" "${base_dir}/${file}" | sed 's/ .*$//')" \ + "$("${SHA256SUM}" "${base_dir}/${file}" | sed 's/ .*$//')" \ >>"${feed_hash_idx}/info/${pkg}.control" # Mark feed index fragment as outdated. @@ -166,7 +166,8 @@ update_feeds() mv "${sect}/Packages~" \ "${sect}/Packages" if ${conf_gzip}; then - gzip -9c "${sect}/Packages" \ + "${GZIP}" -9c \ + "${sect}/Packages" \ >"${sect}/Packages.gz" fi printf '%s\n' "${manifest_entry}" >&3 |