diff options
author | P. 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) |
commit | 5d831b7142a8bebd4158bca50d18a1beac7bf781 (patch) | |
tree | 58c232e30df6b030b99717bfd4c765fad6a8ed14 | |
parent | ad423b9d8870b8ab754a94f81302c5bdb39a1169 (diff) |
update_feeds(): Compress Packages if enabled
-rw-r--r-- | lib/index.sh | 7 |
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}" |