gnomeos: Add --skip-if-unchanged for yocto commit, also show a diff after building

We don't want to make new commits if nothing changed.
This commit is contained in:
Colin Walters 2011-12-23 07:45:13 -05:00
parent 1687f3efa8
commit 649d7c3ecf
1 changed files with 2 additions and 1 deletions

View File

@ -37,4 +37,5 @@ BUILD_TAR=$BUILDDIR/deploy/images/gnomeos-contents-$BRANCH-qemu${ARCH}.tar.gz
BUILD_TIME=$(date -r $BUILD_TAR)
ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
ostree --repo=${OSTREE_REPO} commit --skip-if-unchanged -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tree=tar=${BUILD_TAR}
ostree --repo=${OSTREE_REPO} diff "gnomeos-yocto-$ARCH-$BRANCH"^ "gnomeos-yocto-$ARCH-$BRANCH"