diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-packages | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/build-packages b/bin/build-packages index 0012020..e1dfbb5 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -439,6 +439,15 @@ while [ "${count}" -ne 0 ] && \ build_command='staging-with-build-support-'"${arch}"'-build' elif echo "${straw}" | \ grep -qF ':without_systemd_nspawn:'; then + if [ -z "${prefered_package}" ]; then + >&2 echo 'straw :without_systemd_nspawn: only allowed with -p' + exit 2 + fi + if [ "${prefered_package}" != "${package}" ]; then + >&2 echo 'The prefered package was not handed out.' + >&2 echo 'Because straw :without_systemd_nspawn: is active, I will abort.' + exit 2 + fi if ! uname -m | \ grep -qxF "${arch}"; then >&2 echo 'straw :without_systemd_nspawn: requires running build-packages on the' |