obs: Check for broken packages

We need to check for broken packages at the obs-wait script.

Fixes #492

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes 2019-12-02 15:31:10 -06:00
parent 0b3f5c7570
commit 37bce87661

View File

@ -46,6 +46,10 @@ wait_finish_building() {
osc pr
exit 1
fi
if echo "${out}" | grep '<details>broken</details>'; then
echo "Project ${project} has broken packages"
exit 1
fi
if echo "${out}" | grep 'code="blocked"'; then
echo "Project ${project} has blocked packages, waiting"
continue