[gnome-ostree/wip/gjs-round2] qemu-pull-deploy: Actually move image into place when done making it



commit 1570090fafbb008660dce3869c9ec0bfdfa7600c
Author: Colin Walters <walters verbum org>
Date:   Fri Dec 14 17:42:11 2012 -0500

    qemu-pull-deploy: Actually move image into place when done making it

 src/ostbuild/ostbuild-qemu-pull-deploy |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ostbuild/ostbuild-qemu-pull-deploy b/src/ostbuild/ostbuild-qemu-pull-deploy
index 03d41e3..346b38d 100644
--- a/src/ostbuild/ostbuild-qemu-pull-deploy
+++ b/src/ostbuild/ostbuild-qemu-pull-deploy
@@ -39,6 +39,7 @@ if ! test -f ${qemu_path}; then
     mount -o loop ${tmppath} ${mountpoint}
     ostree admin init-fs ${mountpoint} || (umount ${mountpoint} 2>/dev/null; exit 1)
     umount ${mountpoint}
+    mv ${tmppath} ${qemu_path}
 fi
 
 ostreedir=${mountpoint}/ostree



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]