From 153a2ae3aedb8dd4b58c08f88b1137699d38480c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 31 May 2017 11:41:03 +0200 Subject: bin/build-packages: skip 3rd and 4th compilation if source tarball is not available from mirror --- bin/build-packages | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/build-packages b/bin/build-packages index f064556..22f86a9 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -163,9 +163,11 @@ while [ ${count} -ne 0 ]; do ' )" git_repo="$(find_git_repository_to_package_repository "${repository}")" - if wget -nc -nd "https://sources.archlinux.org/sources/${git_repo}/${source_name}"; then - tar -xzkf "${source_name}" --exclude PKGBUILD --strip-components=1 || true + if ! wget -nc -nd "https://sources.archlinux.org/sources/${git_repo}/${source_name}"; then + # we can't improve anything + break fi + tar -xzkf "${source_name}" --exclude PKGBUILD --strip-components=1 || true fi for parameters in '' '-c'; do -- cgit v1.2.3-70-g09d2