Skip to content

Commit

Permalink
UPSTREAM: <carry>: Fix sporadic 141 errors in build-rpms
Browse files Browse the repository at this point in the history
"head" sometimes exits before "rpmspec" finishes piping it all its data.
Workaround that by separating the rpmspec and head calls.
  • Loading branch information
aravindhp authored and sairameshv committed Dec 4, 2023
1 parent f0e983d commit 916fb54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openshift-hack/build-rpms.sh
Expand Up @@ -31,7 +31,8 @@ fi
os::build::rpm::get_nvra_vars

OS_RPM_SPECFILE="$( find "${OS_ROOT}" -name '*.spec' )"
OS_RPM_NAME="$( rpmspec -q --qf '%{name}\n' "${OS_RPM_SPECFILE}" | head -1 )"
OS_RPM_SPECQUERY="$( rpmspec -q --qf '%{name}\n' "${OS_RPM_SPECFILE}" )"
OS_RPM_NAME="$( head -1 <<< "${OS_RPM_SPECQUERY}" )"

os::log::info "Building release RPMs for ${OS_RPM_SPECFILE} ..."

Expand Down

0 comments on commit 916fb54

Please sign in to comment.