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:
Archana Shinde 2019-11-19 10:31:02 -08:00
parent ca7fb82003
commit e4a8c6b2a3

View File

@ -50,14 +50,15 @@ wait_finish_building() {
echo "Project ${project} has blocked packages, waiting" echo "Project ${project} has blocked packages, waiting"
continue continue
fi fi
if echo "${out}" | grep 'code="excluded"'; then
echo "Project ${project} has excluded packages, waiting"
continue
fi
if echo "${out}" | grep 'state="building"'; then if echo "${out}" | grep 'state="building"'; then
echo "Project ${project} is still building, waiting" echo "Project ${project} is still building, waiting"
continue continue
fi 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 "No jobs with building status were found"
echo "${out}" echo "${out}"
break break