index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/return-assignment | 20 |
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 |