Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-19 06:37:06 +0200
committerErich Eckner <git@eckner.net>2017-09-19 06:37:06 +0200
commit44410e62fe988939136222165da474bcf2d44191 (patch)
tree13079fd8484fa2fac3083a60819976ece4a254e6 /bin
parent256133f131b90a91d4218912efbc0f39b02af3f3 (diff)
bin/db-update: bugfix if list(s) is/are empty
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/db-update b/bin/db-update
index 0016436..427956a 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -559,6 +559,9 @@ clean_up_lock_file() {
# testing -> stable
while read -r package; do
+ if [ -z "${package}" ]; then
+ continue
+ fi
printf '%s %s %s\n' \
"${package}" \
"$(official_or_community "${package}" 'testing')" \
@@ -570,6 +573,9 @@ done < \
# staging -> testing
while read -r package; do
+ if [ -z "${package}" ]; then
+ continue
+ fi
printf '%s %s %s\n' \
"${package}" \
"$(official_or_community "${package}" 'staging')" \