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-06-22 23:33:31 +0200
committerErich Eckner <git@eckner.net>2017-06-22 23:33:31 +0200
commit0d87c7936d80abbc271bbd2ef813136ccdf03736 (patch)
treec3b0b18da475a2cf82fb185b02cf121d115180bd /bin
parent0e13adff76c5ab655df3b9fb0dcd28b4df5083f5 (diff)
bin/db-update: bugfix
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/db-update b/bin/db-update
index 01db113..a67a3fc 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -272,12 +272,12 @@ move_packages() {
else
# remove old state files of $package with ending $to_ending
ls "${work_dir}/package-states" | \
- grep "^$(str_to_regex "${package}")\(\.[^.]\+\)\{3\}\.${to_ending}\$" | \
+ grep "^$(str_to_regex "${package%.*.*.*}")\(\.[^.]\+\)\{3\}\.${to_ending}\$" | \
sed "s|^|${work_dir}/package-states/|" | \
xargs -rn1 ${dummynator} rm
${dummynator} mv \
"${work_dir}/package-states/${package}.${from_ending}" \
- "${work_dir}/package-states/${package}.${to_ending}"
+ "${work_dir}/package-states/${package}.${to_ending}"
fi
done < \