index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/get-package-updates | 8 |
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 |