diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-06-23 20:07:40 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-06-23 20:07:40 (EDT) |
commit | 50d5a14d3eee1c7ce04ae85fa458d43d8e0cf998 (patch) | |
tree | 9e18f53d0493a16edf48022768aeae41c0e8e55f /src/index.sh | |
parent | 38f237f0a37bb10c6d1ac2bb37283b24d1be853b (diff) |
update_feeds(): Don't remove empty feed indices
Diffstat (limited to 'src/index.sh')
-rw-r--r-- | src/index.sh | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/index.sh b/src/index.sh index 62208b9..33dca70 100644 --- a/src/index.sh +++ b/src/index.sh @@ -184,26 +184,19 @@ update_feeds() 1>"${sect}/Packages~" mv -- "${sect}/Packages~" \ "${sect}/Packages" - if ${conf_gzip}; then - "${GZIP}" -9c -- \ - "${sect}/Packages" \ - 1>"${sect}/Packages.gz" - fi - feed_sign "${sect}/Packages" else - rm -f -- "${sect}/Packages" \ - "${sect}/Packages.gz" + 1>"${sect}/Packages" + fi + if ${conf_gzip}; then + "${GZIP}" -9c -- "${sect}/Packages" \ + 1>"${sect}/Packages.gz" fi + feed_sign "${sect}/Packages" rmdir -- "${sect_dirent}" - try_rmdir "${sect}" || : done rmdir -- "${archplat_dirent}" - try_rmdir "${archplat}" || : - try_rmdir "${archplat%/*}" || : done rmdir -- "${suite_dirent}" - try_rmdir "${suite}" - try_rmdir "${suite%/*}" done # Generate all suites' arch/plat/sect manifests. |