summaryrefslogtreecommitdiffstats
path: root/lib/index.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-05-25 18:35:34 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-05-25 18:35:34 (EDT)
commit5d831b7142a8bebd4158bca50d18a1beac7bf781 (patch)
tree58c232e30df6b030b99717bfd4c765fad6a8ed14 /lib/index.sh
parentad423b9d8870b8ab754a94f81302c5bdb39a1169 (diff)
update_feeds(): Compress Packages if enabled
Diffstat (limited to 'lib/index.sh')
-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}"