summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-29 12:45:08 +0100
committerErich Eckner <git@eckner.net>2018-10-29 12:45:08 +0100
commitbffd76398b350dccf36d7ec8a239408f72e8f449 (patch)
tree35b726b2969ca2370c12f97b76c458f77566359b
parent69246490c87a862d076515f8de2ffc296eaf9a6f (diff)
downloadbuilder-bffd76398b350dccf36d7ec8a239408f72e8f449.tar.xz
bin/build-packages: create and upload empty archive if "tar" fails (so the buildmaster notices the package as broken)
-rwxr-xr-xbin/build-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 67bb8d6..28538c5 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -652,7 +652,6 @@ while [ "${count}" -ne 0 ] && \
-name '*.pkg.tar.xz-namcap.log' \
-execdir grep -HF '' '{}' \;
fi
- # TODO: if this tar fails, we should tell the buildmaster about it
# shellcheck disable=SC2046
tar -cf 'package.tar' -C "${tar_content_dir}" -- $(
find "${tar_content_dir}/" -maxdepth 1 \
@@ -664,7 +663,8 @@ while [ "${count}" -ne 0 ] && \
-name '*.pkg.tar.xz.so.provides.gz' \
\) \
-printf '%f\n'
- )
+ ) || \
+ tar -cf 'package.tar' -T /dev/null
if ${upload_to_build_master}; then
# shellcheck disable=SC2046
rsync $(