summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-21 20:51:21 +0200
committerErich Eckner <git@eckner.net>2017-10-21 20:51:21 +0200
commit7c9e3f95079e3f3ab1e056a3064b161501ca7f7c (patch)
treec19ab98665a8014ae135f46bce0e6b73c1914aac /bin
parentb4269ddd7dcc78d632bc787644cf7eca7404c82f (diff)
downloadbuilder-7c9e3f95079e3f3ab1e056a3064b161501ca7f7c.tar.xz
bin/build-packages: download a (more) correct x86_64 reference package
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 1ab50c2..9e2cd17 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -315,13 +315,15 @@ while [ "${count}" -ne 0 ]; do
T
s/\$repo/'"${repository}"'/g
s/\$arch/x86_64/g
- s|/$||
- s|$|/'"${pkg_file}"'|
- s/-i686\(\.pkg\.tar\.xz\)$/-x86_64\1/
p
' | \
shuf
} | \
+ sed '
+ s|/[^/]\+\.pkg\.tar\.xz$||
+ s|$|/'"${pkg_file}"'|
+ s/-i686\(\.pkg\.tar\.xz\)$/-x86_64\1/
+ ' | \
while read -r url; do
if wget -q -nd "${url}"; then
break;