From 0e3ca0d975d2cf859f2d32c41043024f76b765485a771057131f0cc8f72deb77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 14 Sep 2017 11:45:14 +0000 Subject: [PATCH] Accepting request 526057 from GNOME:Next - Update openSUSE-appstream-process: exit early if as-builder does not end with exit 0. OBS-URL: https://build.opensuse.org/request/show/526057 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/appstream-glib?expand=0&rev=107 --- appstream-glib.changes | 6 ++++++ openSUSE-appstream-process | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/appstream-glib.changes b/appstream-glib.changes index b195225..31670e0 100644 --- a/appstream-glib.changes +++ b/appstream-glib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 14 11:35:44 UTC 2017 - dimstar@opensuse.org + +- Update openSUSE-appstream-process: exit early if as-builder does + not end with exit 0. + ------------------------------------------------------------------- Tue Sep 5 20:26:36 UTC 2017 - jengelh@inai.de diff --git a/openSUSE-appstream-process b/openSUSE-appstream-process index c642e9b..7fe1b84 100644 --- a/openSUSE-appstream-process +++ b/openSUSE-appstream-process @@ -19,6 +19,11 @@ TMPDIR=$(mktemp -d) --packages-dir=${SRC} \ --output-dir=${DEST} +if [ $? -ne 0 ]; then + # The appstream-builder failed, exit with an error code, so prod builder knows about it + exit 1 +fi + # clean up TMPDIR again rm -rf ${TMPDIR}