Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-17 16:21:08 +0200
committerErich Eckner <git@eckner.net>2017-05-17 16:21:08 +0200
commit2ffb67d3c8e7ef922dbb9e897c8de8722a5be5de (patch)
treedf1db1aa741c6e058547734a1307b140ad045aa1 /bin
parenta525d316f5e882039f3072f087d92e4b8f625bf9 (diff)
bin/get-package-updates: only search for PKGBUILD if no cached values available
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates15
1 files changed, 8 insertions, 7 deletions
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