diff options
author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-11-11 17:26:26 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-11-20 10:42:56 +0100 |
commit | 44339d4b133d957e02ef042c2ee50da4f7a7ba62 (patch) | |
tree | 5ba441d05c2d2d89ab5124827048aa15e716e069 /classes | |
parent | bca06938986bbe5a5d92aa81b30f72971880164a (diff) | |
download | meta-updater-44339d4b133d957e02ef042c2ee50da4f7a7ba62.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>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_ostree.bbclass | 3 |
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 | |||
188 | IMAGE_CMD_ostreepush () { | 188 | IMAGE_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 | ||