From fb99f94635f17ab9f11473826c746fa82bd24ce3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 29 Jun 2020 01:30:37 -0400 Subject: update_feeds(): Fix usign errors on empty indices Fixes: Cannot open message file: Invalid argument --- diff --git a/NEWS b/NEWS index de57375..a6d673f 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,10 @@ ProteanOS Archive Manager version 2.1.0+dev Released: ????-??-?? +Changes in this release: + + * A failure to sign empty feed index files has been fixed. + ProteanOS Archive Manager version 2.1.0 --------------------------------------- diff --git a/src/index.sh b/src/index.sh index 275934e..6e77a9d 100644 --- a/src/index.sh +++ b/src/index.sh @@ -201,7 +201,8 @@ update_feeds() mv -- "${sect}/Packages~" \ "${sect}/Packages" else - 1>"${sect}/Packages" + # Must be non-empty for usign to work. + printf '\n' 1>"${sect}/Packages" fi if ${conf_gzip}; then "${GZIP}" -9c -- "${sect}/Packages" \ -- cgit v0.9.1