summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-30 16:10:15 +0200
committerErich Eckner <git@eckner.net>2017-08-30 16:10:15 +0200
commit703b9f1ca5fe85dabd70761966f1367cac173eaf (patch)
treeb931bfd875fe496c6433a5cf5fb49fdcfd0891fd
parentfe59a5733ce913fb5dd39ca51e309c49cf9822f9 (diff)
downloadbuilder-703b9f1ca5fe85dabd70761966f1367cac173eaf.tar.xz
bin/common-functions: download_sources_by_hash: skip "SKIP"-sums
-rwxr-xr-xbin/common-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 9b8f483..377efe5 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -744,6 +744,9 @@ download_sources_by_hash() {
join -1 1 -2 1 -o 1.2,2.2 "${tmp_dir}/sums" "${tmp_dir}/urls" > \
"${tmp_dir}/joined"
while read -r sum file; do
+ if [ "${sum}" = 'SKIP' ]; then
+ continue
+ fi
if echo "${sum} ${file}" | \
${sum_type} -c > /dev/null 2>&1; then
# the correct source is already there