summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-06-29 01:30:37 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-06-29 01:32:43 (EDT)
commitfb99f94635f17ab9f11473826c746fa82bd24ce3 (patch)
tree93f97e725c079d5626007e308fe0d5ea7f025582 /src
parent5bfd8d770dd76a889fe1a79f2ca3e91decb8e83d (diff)
update_feeds(): Fix usign errors on empty indices
Fixes: Cannot open message file: Invalid argument
Diffstat (limited to 'src')
-rw-r--r--src/index.sh3
1 files changed, 2 insertions, 1 deletions
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" \