blob: 41a6a4151ce25be180841fbfc7b07ab3b3acc65c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From 5285baf194c84bac30d49cc8e8d42e70a3a1a43f Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Mon, 29 Jun 2020 01:30:37 -0400
Subject: [PATCH] update_feeds(): Fix usign errors on empty indices
Fixes:
Cannot open message file: Invalid argument
---
src/index.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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" \
--
2.11.0
|