Warn about missing createrepo on suse

This commit is contained in:
2022-01-14 01:22:39 -05:00
parent 85ab3712d2
commit ba0be060d9

View File

@@ -1558,8 +1558,11 @@ main() {
fi fi
if (( CREATEREPO_SWITCH )); then if (( CREATEREPO_SWITCH )); then
if [[ "$ID" == "suse" ]]; then
err "createrepo is not available on SUSE"
exit 1
fi
runCreaterepo runCreaterepo
exit $?
fi fi
if [[ "${#SERVICES[@]}" -gt 0 ]]; then if [[ "${#SERVICES[@]}" -gt 0 ]]; then