index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-05-17 16:21:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-05-17 16:21:08 +0200 |
commit | 2ffb67d3c8e7ef922dbb9e897c8de8722a5be5de (patch) | |
tree | df1db1aa741c6e058547734a1307b140ad045aa1 | |
parent | a525d316f5e882039f3072f087d92e4b8f625bf9 (diff) |
-rwxr-xr-x | bin/get-package-updates | 15 |
diff --git a/bin/get-package-updates b/bin/get-package-updates index 71f379c..355166c 100755 --- a/bin/get-package-updates +++ b/bin/get-package-updates @@ -126,13 +126,6 @@ rm -f "${work_dir}/build-order" touch "${work_dir}/build-order" while read -r package git_revision mod_git_revision repository; do - PKGBUILD="$(find_pkgbuild "${package}" "${repository}")" - - if [ ! -r "${PKGBUILD}" ]; then - echo "can't find PKGBUILD to package '${package}' from repository '${repository}': '${PKGBUILD}'" - exit 1 - fi - # delete cached values of old versions of this PKGBUILD ls -1 "${work_dir}/package-infos/${package}."* 2> /dev/null | \ sed 's|^.*/||' | \ @@ -147,6 +140,13 @@ while read -r package git_revision mod_git_revision repository; do [ ! -e "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.needs" ] || \ [ ! -e "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.packages" ]; then + PKGBUILD="$(find_pkgbuild "${package}" "${repository}")" + + if [ ! -r "${PKGBUILD}" ]; then + echo "can't find PKGBUILD to package '${package}' from repository '${repository}': '${PKGBUILD}'" + exit 1 + fi + ( cd "${PKGBUILD%/*}" apply_package_customizations @@ -221,6 +221,7 @@ echo 'Now actually sort it.' awk '{print $5 " " $7 " " $8 " " $9}' > \ "${work_dir}/build-list.new.new" +rm --one-file-system -rf "${work_dir}/build-order.loops.new" mkdir "${work_dir}/build-order.loops.new" if [ -s "${work_dir}/tsort.error" ]; then |