summaryrefslogtreecommitdiff
path: root/bin/return-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-07 14:24:35 +0200
committerErich Eckner <git@eckner.net>2018-06-07 14:24:35 +0200
commit53cc0f179f3be97bbdeeba794cbbef3d05d1b72c (patch)
tree8bbb652f870137841b312de8b1bd9fb253dea6c8 /bin/return-assignment
parent8d9bffeee603a3e6f08a01bef3819ec75252db13 (diff)
downloadbuilder-53cc0f179f3be97bbdeeba794cbbef3d05d1b72c.tar.xz
bin/return-assignment: use file instead of space-separated variable to store built package names
Diffstat (limited to 'bin/return-assignment')
-rwxr-xr-xbin/return-assignment20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index 0b3744c..3dee115 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -402,9 +402,9 @@ if [ -z "$(
fi
# check if the sent packages are the expected ones
-packages=$(
- find . -maxdepth 1 -name '*.pkg.tar.xz' -printf '%f\n'
-)
+find . -maxdepth 1 -name '*.pkg.tar.xz' -printf '%f\n' > \
+ "${tmp_dir}/packages"
+
# shellcheck disable=SC2016
{
printf 'SELECT'
@@ -429,10 +429,9 @@ packages=$(
package_errors=$(
{
- printf '%s\n' "${packages}" | \
- sed '
- s|^|was_built: |
- '
+ sed '
+ s|^|was_built: |
+ ' "${tmp_dir}/packages"
sed '
s|^[0-9]\+ |expected: |
' "${tmp_dir}/package-ids"
@@ -514,9 +513,10 @@ for arch in 'i686'; do
"${master_mirror_rsync_directory}/i686/${destination}/${destination}.files."* \
"${arch}/"
- # shellcheck disable=SC2086
- repo-add "${arch}/${destination}.db.tar.gz" ${packages}
- # repo-add -v -s -k "${repo_key}" "${destination}.db.tar.gz" ${packages}
+ xargs -r repo-add "${arch}/${destination}.db.tar.gz" < \
+ "${tmp_dir}/packages"
+ # xargs -r repo-add -v -s -k "${repo_key}" "${destination}.db.tar.gz" < \
+ # "${tmp_dir}/packages"
done