Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 446f977..9b895c4 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -114,6 +114,7 @@ echo 'Extract dependencies of packages.'
mkdir -p "${work_dir}/package-infos"
rm -f "${work_dir}/build-order"
+touch "${work_dir}/build-order"
while read -r package git_rev repository; do
PKGBUILD="$(find_pkgbuild "${package}" "${repository}")"
@@ -123,6 +124,13 @@ while read -r package git_rev repository; do
exit 1
fi
+ ls -1 "${work_dir}/package-infos" | \
+ grep "^${package}"'\.[0-9a-f]\{40\}\.\(builds\|needs\)$' | \
+ grep -v "^${package}\.${git_rev}"'\.\(builds\|needs\)$' | \
+ while read file; do
+ echo rm "${work_dir}/package-infos/${file}"
+ done
+
if [ ! -e "${work_dir}/package-infos/${package}.${git_rev}.builds" ] || \
[ ! -e "${work_dir}/package-infos/${package}.${git_rev}.needs" ]; then