summaryrefslogtreecommitdiffstats
path: root/qt-ostree
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2016-07-08 15:58:47 +0200
committerGatis Paeglis <gatis.paeglis@qt.io>2016-07-18 12:30:49 +0000
commitaaca431555b262df1ec9a1fac71abae3b1292bba (patch)
treee049ba42b9fee5f001dbb20147ecb5d8ce4c6120 /qt-ostree
parent89faaff3366ef52fe257f09b6ca1b1f894fa5364 (diff)
Print sysroot diff
Change-Id: Ia82b5194d3f27e7dbfa66fdace7be657c8188635 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'qt-ostree')
-rwxr-xr-xqt-ostree/qt-ostree13
1 files changed, 12 insertions, 1 deletions
diff --git a/qt-ostree/qt-ostree b/qt-ostree/qt-ostree
index b1c4069..48f5303 100755
--- a/qt-ostree/qt-ostree
+++ b/qt-ostree/qt-ostree
@@ -53,6 +53,7 @@ BOOTLOADER="u-boot"
UBOOT_ENV_FILE=""
GRUB2_CFG_GENERATOR=""
# REPO
+FIRST_COMMIT=false
OSTREE_REPO=${WORKDIR}/ostree-repo
OSTREE_BRANCH=linux/qt
OSTREE_COMMIT_SUBJECT=""
@@ -623,7 +624,6 @@ commit_generated_tree()
{
# Commit the generated tree into OSTree repository.
mkdir -p ${OSTREE_REPO}
- FIRST_COMMIT=false
if [ ! -d ${OSTREE_REPO}/objects ] ; then
FIRST_COMMIT=true
qt_ostree_info "Initializing new OSTree repository in ${OSTREE_REPO}"
@@ -902,6 +902,15 @@ detect_target_device()
qt_ostree_info "Detected ${DEVICE} device with ${BOOTLOADER} boot loader"
}
+print_summary()
+{
+ # Print sysroot diff.
+ if [ $FIRST_COMMIT = false ] ; then
+ qt_ostree_info "Files (C)hanged / (M)odified / (D)eleted since the previous version:"
+ "${OSTREE}" --repo=${OSTREE_REPO} diff ${OSTREE_BRANCH}^ ${OSTREE_BRANCH}
+ fi
+}
+
main()
{
parse_args "$@"
@@ -926,6 +935,8 @@ main()
umount_mount_points
clean_workdir
+ print_summary
+
qt_ostree_info "All done."
qt_ostree_exit 0
}