summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/index.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/index.sh b/lib/index.sh
index dd6ba3d..8749897 100644
--- a/lib/index.sh
+++ b/lib/index.sh
@@ -169,9 +169,14 @@ update_feeds()
>"${sect}/Packages~"
mv "${sect}/Packages~" \
"${sect}/Packages"
+ if ${conf_gzip}; then
+ gzip -9c "${sect}/Packages" \
+ >"${sect}/Packages.gz"
+ fi
printf '%s\n' "${manifest_entry}" >&3
else
- rm -f "${sect}/Packages"
+ rm -f "${sect}/Packages" \
+ "${sect}/Packages.gz"
fi
rmdir "${sect_dirent}"
try_rmdir "${sect}"