summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-11-11 17:26:26 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-11-20 10:42:33 +0100
commit2287fcc3e47d5cb01554b4a1ec20c0f233c49e97 (patch)
treead89d7dde72e2a0b1df090cb96a9ee14cecdcb5e
parent838b59f39e72e623fdc0a10bcf9c3524be1f7330 (diff)
downloadmeta-updater-2287fcc3e47d5cb01554b4a1ec20c0f233c49e97.tar.gz
Only push repo manifest if garage-push supports it
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
-rw-r--r--classes/image_types_ostree.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass
index f10e523..0f0fd28 100644
--- a/classes/image_types_ostree.bbclass
+++ b/classes/image_types_ostree.bbclass
@@ -188,7 +188,8 @@ do_image_ostreepush[depends] += "aktualizr-native:do_populate_sysroot ca-certifi
188IMAGE_CMD_ostreepush () { 188IMAGE_CMD_ostreepush () {
189 # send a copy of the repo manifest to backend if available 189 # send a copy of the repo manifest to backend if available
190 local SEND_MANIFEST="" 190 local SEND_MANIFEST=""
191 if [ -f ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml ]; then 191 # check if garage-push supports the --repo-manifest option before trying
192 if $(garage-push --help | grep -q '^\s*--repo-manifest') && [ -f ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml ]; then
192 SEND_MANIFEST="--repo-manifest ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml" 193 SEND_MANIFEST="--repo-manifest ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml"
193 fi 194 fi
194 195