Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-17 15:11:24 +0200
committerErich Eckner <git@eckner.net>2017-05-17 15:11:24 +0200
commitb6c1333525127f78e6a6946fbd75cdb7dc4afed5 (patch)
tree69d83cbb0c9b7a2120e4586c91bb1094dff43419
parent67a9413ac34f5d0597835a2e38d247eba881b6a4 (diff)
bin/get-package-updates: bugfix
-rwxr-xr-xbin/get-package-updates6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 0ae3387..1a1a189 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -133,10 +133,10 @@ while read -r package git_revision mod_git_revision repository; do
fi
# delete cached values of old versions of this PKGBUILD
- ls -1 "${work_dir}/package-infos/${package}-"* 2> /dev/null | \
+ ls -1 "${work_dir}/package-infos/${package}."* 2> /dev/null | \
sed 's|^.*/||' | \
- grep "^${package}"'\.\([0-9a-f]\{40\}\.\)\{2\}\(builds\|needs\)$' | \
- grep -v "^${package}\.${git_revision}\.${new_repo_revisions["archlinux32"]}"'\.\(builds\|needs\)$' | \
+ grep "^${package//./\\.}"'\.\([0-9a-f]\{40\}\.\)\{2\}\(builds\|needs\|packages\)$' | \
+ grep -v "^${package//./\\.}\.${git_revision}\.${new_repo_revisions["archlinux32"]}"'\.\(builds\|needs\|packages\)$' | \
while read file; do
rm "${work_dir}/package-infos/${file}"
done