From 595606500b820b8f07a1a0d5a1468e319303827e Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Thu, 21 Nov 2019 11:01:01 -0600 Subject: [PATCH] obs: Failed when we have unresolvable packages We need to fail when we have unresolvable packages as they are not build correctly. Fixes #820 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 914e32b6..5267b33d 100755 --- a/obs-packaging/wait-obs.sh +++ b/obs-packaging/wait-obs.sh @@ -50,6 +50,10 @@ wait_finish_building() { echo "Project ${project} has blocked packages, waiting" continue fi + if echo "${out}" | grep 'code="unresolvable"'; then + echo "Project ${project} has unresolvable packages" + exit 1 + fi if echo "${out}" | grep 'state="building"'; then echo "Project ${project} is still building, waiting" continue