[releng] initialise the atomic repo if it does not exist

Dennis Gilmore ausil at fedoraproject.org
Wed Feb 18 22:52:46 UTC 2015


commit 0db79852e599927304c6d5c3f6f37e51495c295f
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Wed Feb 18 16:52:22 2015 -0600

    initialise the atomic repo if it does not exist

 scripts/run-pungi |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/scripts/run-pungi b/scripts/run-pungi
index 59d4ed5..a65d097 100755
--- a/scripts/run-pungi
+++ b/scripts/run-pungi
@@ -49,6 +49,7 @@ baseurl=http://kojipkgs.fedoraproject.org/mash/bleed/$basearch/' > fedora-bleed.
  sed -i -e 's|\["fedora-22"\]|\["fedora-22", "fedora-bleed"\]|g' *json
  mock -r fedora-branched-compose-x86_64 --init || exit 1
  mock -r fedora-branched-compose-x86_64 --install rpm-ostree || exit 1
+ mock -r fedora-branched-compose-x86_64  --shell "if [ ! -d $ATOMICDEST ]; then ostree init --repo=$ATOMICDEST --mode=archive-z2;fi"
  mock -r fedora-branched-compose-x86_64 --shell "rpm-ostree compose tree --repo=$ATOMICDEST $ATOMIC/fedora-atomic-docker-host.json" || exit 1
 popd
 


More information about the rel-eng mailing list