Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'bin/db-update')
-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 < \