summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/garbage.sh2
-rw-r--r--src/index.sh7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/garbage.sh b/src/garbage.sh
index f7e96f7..58dab41 100644
--- a/src/garbage.sh
+++ b/src/garbage.sh
@@ -32,7 +32,7 @@ collect_garbage()
# NB: The %s format conversion specifier is not specified by POSIX, but
# it is supported by the GNU and BusyBox implementations of date.
- cur_time=$(date '+%s')
+ cur_time=$("${DATE}" '+%s')
for garbage in "${base_dir}/.db/garbage/"*; do
if [ ! -f "${garbage}" ]; then
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