Skip to content

Commit

Permalink
Fix NVR detection for imported Konflux builds
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Srb <michal@redhat.com>
  • Loading branch information
msrb committed Nov 27, 2024
1 parent 6fa49ef commit b3b046a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpminspect_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ get_task_info() {
local task_id=$1
task_info=$("$koji_bin" taskinfo -v -r "$task_id")
build_nvr=$(basename "$(echo "$task_info" | grep "SRPM: " | head -1 | awk '{ print $2 }' | sed 's|\.src.rpm$||g')")
if [ -z "$build_nvr" ]; then
# Imported Konflux builds don't have SRPM tasks
build_nvr=$(echo "$task_info" | grep "Build: " | head -1 | awk '{ print $2 }')
fi
is_scratch="no"
is_scratch_output=$(echo "$task_info" | grep "scratch: True")
if [ -n "$is_scratch_output" ]; then
Expand Down

0 comments on commit b3b046a

Please sign in to comment.