diff --git a/icinga-build-rpm-binary b/icinga-build-rpm-binary index 60d260d6ab19e01dd5fb6a20069efedd00d065e2..4733d2e5a796a5a1f61eb5e3524469c374cfbdbd 100755 --- a/icinga-build-rpm-binary +++ b/icinga-build-rpm-binary @@ -103,6 +103,11 @@ fi echo "[ Running rpmlint ]" ( + source /etc/os-release + if [ "$ID" = sles ] && [[ "$VERSION" = 11.* ]]; then + echo "Skip rpmlint..." + exit 0 + fi lintrc=0 for file in "${BUILDDIR}"/RPMS/**/*.rpm; do lintconf=(--info --verbose -o "NetworkEnabled True") diff --git a/icinga-build-rpm-source b/icinga-build-rpm-source index d004dd305cbcb7c4d25a61bb05a0dda528446686..cec244faf16ed4f89d58ce89f0a75503b8342018 100755 --- a/icinga-build-rpm-source +++ b/icinga-build-rpm-source @@ -93,6 +93,11 @@ if [ -e "rpmlint/${ICINGA_BUILD_PROJECT}.conf" ]; then lintconf+=("-f" "rpmlint/${ICINGA_BUILD_PROJECT}.conf") fi ( + source /etc/os-release + if [ "$ID" = sles ] && [[ "$VERSION" = 11.* ]]; then + echo "Skip rpmlint..." + exit 0 + fi set -o pipefail lintrc=0 (set -x; rpmlint "${lintconf[@]}" "${BUILDDIR}/SPECS/${ICINGA_BUILD_PROJECT}.spec") \