Merge pull request #816 from amshinde/quit-waiting-for-excluded-packages

obs: Do not wait on excluded packages
This commit is contained in:
GabyCT
2019-11-19 15:05:44 -06:00
committed by GitHub

View File

@@ -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