From 37bce87661edd8234f5696cc69afaeff3bd38aee Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Mon, 2 Dec 2019 15:31:10 -0600 Subject: [PATCH] obs: Check for broken packages We need to check for broken packages at the obs-wait script. Fixes #492 Signed-off-by: Gabriela Cervantes --- obs-packaging/wait-obs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/obs-packaging/wait-obs.sh b/obs-packaging/wait-obs.sh index 5267b33d4d..717a3dd6af 100755 --- a/obs-packaging/wait-obs.sh +++ b/obs-packaging/wait-obs.sh @@ -46,6 +46,10 @@ wait_finish_building() { osc pr exit 1 fi + if echo "${out}" | grep '
broken
'; 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