diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | src/index.sh | 19 |
2 files changed, 10 insertions, 13 deletions
@@ -3,6 +3,10 @@ ProteanOS Archive Manager version 2.0.1+dev Released: ????-??-?? +Changes in this release: + + * Feed indices are no longer removed when feeds become empty. + ProteanOS Archive Manager version 2.0.1 --------------------------------------- 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. |