Warn user build_tag isn't supported for rpm

This commit is contained in:
Dmitry Maksyoma
2021-09-03 19:15:33 +12:00
parent d6916fa6fa
commit 56147649a6
2 changed files with 19 additions and 0 deletions

View File

@@ -13,8 +13,17 @@ detect_package_format() {
fi
}
warn_build_tag_not_supported_for_rpm_and_exit() {
if [[ "$package_format" = "rpm" ]]; then
echo >&2 "<build_tag> isn't supported for rpm"
exit 1
fi
}
cd "$(dirname "$0")/.."
detect_package_format
warn_build_tag_not_supported_for_rpm_and_exit
builder/build-tarball "$os" "$codename" "$build_tag"
builder/build-${package_format} "$os" "$codename" "$build_tag"