summaryrefslogtreecommitdiff
path: root/bin/seed-build-list
diff options
context:
space:
mode:
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-xbin/seed-build-list21
1 files changed, 12 insertions, 9 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index 5adf46e..3303416 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -387,15 +387,18 @@ fi
printf 'INSERT INTO `relevant_archs`(`id`)'
printf ' SELECT `architectures`.`id`'
printf ' FROM `architectures`'
- printf ' WHERE `architectures`.`name` NOT IN ('
- base64_encode_each \
- <"${tmp_dir}/skip-archs" \
- | sed '
- s/^.*$/from_base64("\0")/
- $! s/$/,/
- ' \
- | tr -d '\n'
- printf ');\n'
+ if [ -s "${tmp_dir}/skip-archs" ]; then
+ printf ' WHERE `architectures`.`name` NOT IN ('
+ base64_encode_each \
+ <"${tmp_dir}/skip-archs" \
+ | sed '
+ s/^.*$/from_base64("\0")/
+ $! s/$/,/
+ ' \
+ | tr -d '\n'
+ printf ')'
+ fi
+ printf ';\n'
# schedule any package, that:
# 1) is not on the build-list currently and