Skip to content

Commit

Permalink
Add option to ignore the local rpminspect.yaml config
Browse files Browse the repository at this point in the history
Via the IGNORE_LOCAL_RPMINSPECT_YAML env var.

Signed-off-by: Michal Srb <michal@redhat.com>
  • Loading branch information
msrb committed Apr 16, 2024
1 parent 75c84cf commit aeabdd2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpminspect_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# MBS_API_URL - Module Build System (MBS) API URL
# TESTS - a comma-separated list of inspections to run
# CLAMAV_DATABASE_MIRROR_URL - if set, use this mirror to update the clamav database
# IGNORE_LOCAL_RPMINSPECT_YAML - "yes" if the local rpminspect.yaml file should be ignored

set -e

Expand Down Expand Up @@ -216,7 +217,11 @@ repo_ref=$("${koji_bin}" buildinfo "${after_build}" | grep "^Source: " | awk '{
repo_url=$(echo "${repo_ref}" | awk -F'#' '{ print $1 }' | awk -F'?' '{ print $1 }')
commit_ref=$(echo "${repo_ref}" | awk -F'#' '{ print $2 }' | awk -F'?' '{ print $1 }')

fetch-my-conf.py "${repo_url}" "${CONFIG_BRANCHES}" "${commit_ref}" || :
if [ "${IGNORE_LOCAL_RPMINSPECT_YAML}" == "yes" ]; then
echo "IGNORE_LOCAL_RPMINSPECT_YAML is set to "yes" -> skipping fetching the local rpminspect.yaml file"
else
fetch-my-conf.py "${repo_url}" "${CONFIG_BRANCHES}" "${commit_ref}" || :
fi

if ! update_clamav_database; then
# Oops, incremental update of the ClamAV virus database has failed.
Expand Down

0 comments on commit aeabdd2

Please sign in to comment.