Skip to content
Snippets Groups Projects
Commit 169d8b8b authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Fix koji version on el7 (add back trailing .cern)

parent ab18b743
No related branches found
No related tags found
1 merge request!1Add Ubuntu 2404 (noble numbat)
......@@ -303,7 +303,11 @@ function update_and_commit_md()
fi
# Update the current koji buildID (RedHat only)
if [ "${_brn#ubuntu}" == ${_brn} ]; then
local _bid="buildID=$(koji buildinfo ${_nam}-${_tag} | grep ^BUILD | sed 's/\[//' | sed 's/\]//' | cut -d' ' -f3)"
if [ "${brn}" == "el7" ]; then
local _bid="buildID=$(koji buildinfo ${_nam}-${_tag}.cern | grep ^BUILD | sed 's/\[//' | sed 's/\]//' | cut -d' ' -f3)"
else
local _bid="buildID=$(koji buildinfo ${_nam}-${_tag} | grep ^BUILD | sed 's/\[//' | sed 's/\]//' | cut -d' ' -f3)"
fi
local _old=$(cat ${_mdf} | egrep "<\!-- KOJIBUILDID = " | cut -d ' ' -f4)
if [ "${_old}" == "" ]; then
echo "ERROR! No '<"\!"-- KOJIBUILDID = ' in ${_mdf}?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment