From 4715844cc31eb774c912839c5e37895d311b42a4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 3 Jan 2020 15:17:19 +0100 Subject: bin/build-packages: do not download more than 100 packages for namcap --- bin/build-packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/build-packages b/bin/build-packages index 8e16e60..63c9301 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -700,14 +700,14 @@ while [ "${count}" -ne 0 ] && \ s/\$repo/'"${repository}"'/g s/\$arch/x86_64/g p - ' | \ - shuf + ' } | \ sed ' s|$|/'"${pkg_file}"'| s/\.[0-9]\+\(-[^-]\+\)$/\1/ s/-'"${arch}"'\+\(\.pkg\.tar\.zst\)$/-x86_64\1/ ' | \ + shuf -n 100 | \ while read -r url; do >&2 printf 'downloading "%s" ...' "${url}" if wget -q --timeout=15 -nd "${url}"; then -- cgit v1.2.3-70-g09d2