diff options
Diffstat (limited to 'src')
-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. |