Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;