diff options
Diffstat (limited to 'src/index.sh')
-rw-r--r-- | src/index.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.sh b/src/index.sh index ea479d5..ebb348e 100644 --- a/src/index.sh +++ b/src/index.sh @@ -43,8 +43,9 @@ feed_add_package() feed_hash_idx="${base_dir}/feeds/${chan}/${dist}/${arch}/${plat}" feed_hash_idx="${feed_hash_idx}/${sect}/.db/${pkg_hash}" mkdir -p "${feed_hash_idx}/info" - tar -xzOf "${base_dir}/${file}" 'control.tar.gz' | \ - tar -xzO './control' >"${feed_hash_idx}/info/${pkg}.control" + "${TAR}" -xzOf "${base_dir}/${file}" 'control.tar.gz' | \ + "${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/ .*$//')" \ |