From 80014e3e0847537ed3f7d711b83befc1afd9cc13 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 23 Apr 2017 02:47:02 +0200 Subject: bin/get-package-updates: be more stable --- bin/get-package-updates | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/get-package-updates') 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 -- cgit v1.2.3-70-g09d2