mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 00:07:16 +00:00
obs: Do not wait on excluded packages
In case a package in obs is excluded ie no longer being built, do not wait for it to be built. Wait as long as there are packages being built or blocked on others to be built. Fixes #815 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
ca7fb82003
commit
e4a8c6b2a3
@ -50,14 +50,15 @@ wait_finish_building() {
|
||||
echo "Project ${project} has blocked packages, waiting"
|
||||
continue
|
||||
fi
|
||||
if echo "${out}" | grep 'code="excluded"'; then
|
||||
echo "Project ${project} has excluded packages, waiting"
|
||||
continue
|
||||
fi
|
||||
if echo "${out}" | grep 'state="building"'; then
|
||||
echo "Project ${project} is still building, waiting"
|
||||
continue
|
||||
fi
|
||||
if echo "${out}" | grep 'code="excluded"'; then
|
||||
echo "Project ${project} has excluded packages left, quit waiting"
|
||||
break
|
||||
fi
|
||||
|
||||
echo "No jobs with building status were found"
|
||||
echo "${out}"
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user