Commit 9187ece5 authored by Markus Frosch's avatar Markus Frosch
Browse files

rpm: Skip lint on SLES 11

parent dbef31b8
......@@ -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")
......
......@@ -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") \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment