54 lines
1.5 KiB
Bash
Executable File
54 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Copyright (C) 2026 Red Hat, Inc.
|
|
# Written by:
|
|
# Andrew John Hughes <gnu.andrew@redhat.com>
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# Waive a rpminspect gating issue
|
|
|
|
RHEL_VER=${1}
|
|
NVR=${2}
|
|
COMMENT=${3}
|
|
|
|
WORKING_DIR=$(dirname "${0}")
|
|
|
|
if test "x${RHEL_VER}" = "x"; then
|
|
echo "No RHEL version specified.";
|
|
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
|
exit 1;
|
|
fi
|
|
|
|
if test "x${NVR}" = "x"; then
|
|
echo "No NVR specified.";
|
|
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
|
exit 2;
|
|
fi
|
|
|
|
if test "${COMMENT}" = ""; then
|
|
echo "No comment specified.";
|
|
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
|
exit 3;
|
|
fi
|
|
|
|
"${WORKING_DIR}"/waive_issue.sh "${RHEL_VER}" "${NVR}" osci.brew-build.rpminspect.static-analysis "${COMMENT}"
|
|
|
|
# Local Variables:
|
|
# compile-command: "shellcheck waive_rpminspect.sh"
|
|
# fill-column: 80
|
|
# indent-tabs-mode: nil
|
|
# sh-basic-offset: 4
|
|
# End:
|