From 5d831b7142a8bebd4158bca50d18a1beac7bf781 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 25 May 2015 18:35:34 -0400 Subject: update_feeds(): Compress Packages if enabled --- (limited to 'lib') 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}" -- cgit v0.9.1