Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index af6b728..00d4cd4 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -115,13 +115,18 @@ if [ -n "${signature_errors}" ]; then
fi
# check if the sent packages are the expected ones
-packages=*.pkg.tar.xz
+packages="$(
+ ls -1 | \
+ grep '\.pkg\.tar\.xz$'
+)"
package_errors="$(
(
printf '%s\n' ${packages} | \
sed '
- s@\(-[^-]\+\)\{2\}-\([^-]\+\)\.pkg\.tar\.xz@ \2@
- / any$/{s|any$|i686|}
+ s@\(-[^-]\+\)\{2\}-\([^-]\+\)\.pkg\.tar\.xz$@ \2@
+ / any$/{
+ s|any$|i686|
+ }
'
sed 's|$| i686|' "${work_dir}/package-infos/$1.$2.$3.packages"
) | \