From 5559247df3d16eb48051aad99b9e7be85362a2cf Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 22 Aug 2017 09:59:26 +0200 Subject: bin/build-packages: try to download sources by hash --- bin/build-packages | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/build-packages') diff --git a/bin/build-packages b/bin/build-packages index fc3a205..c207966 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -187,6 +187,16 @@ while [ ${count} -ne 0 ]; do tar -xz --overwrite -f "${source_name}" --exclude PKGBUILD --strip-components=1 || true fi + if echo "${straw}" | \ + grep -qF ':mirrored_source_by_hash:'; then + # maybe a missing source is/was the problem? + # download it from sources.archlinux32.org by its hash + if ! download_sources_by_hash "${package}" "${repository}" "${git_revision}" "${mod_git_revision}"; then + # we can't improve anything, if no source was downloadable + continue + fi + fi + if echo "${straw}" | \ grep -qF ':with_build_support:'; then build_command='staging-with-build-support-i686-build' -- cgit v1.2.3-54-g00ecf