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:
authorErich Eckner <git@eckner.net>2017-06-16 10:24:52 +0200
committerErich Eckner <git@eckner.net>2017-06-16 10:24:52 +0200
commit1dcb91614f41848b3da01113fe3356b548304bc3 (patch)
treec4b63fe9fc7f27b73a27460544ae2da03685d77d /bin/return-assignment
parenteb7164898f731c2c50e849048ce2f4c561017db5 (diff)
bin/return-assignment: bugfix
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"
) | \