[gnome-ostree/wip/gjs-round2] build: Correctly build the base



commit 47a6eeb879a3222df4d90346ec9feaca610fd3af
Author: Colin Walters <walters verbum org>
Date:   Thu Dec 13 13:01:34 2012 -0500

    build: Correctly build the base
    
    We only need to ensure the parent dir.

 src/ostbuild/js/build.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/js/build.js b/src/ostbuild/js/build.js
index 57cfeec..7c791d5 100644
--- a/src/ostbuild/js/build.js
+++ b/src/ostbuild/js/build.js
@@ -556,9 +556,9 @@ const Build = new Lang.Class({
 
     /* Build the Yocto base system. */
     _buildBase: function(architecture, cancellable) {
-        let basemeta = this._snapshot['base'];
+        let basemeta = Snapshot.expandComponent(this._snapshot, this._snapshot['base']);
         let checkoutdir = this.workdir.get_child('checkouts').get_child(basemeta['name']);
-	GSystem.file_ensure_directory(checkoutdir, true, cancellable);
+	GSystem.file_ensure_directory(checkoutdir.get_parent(), true, cancellable);
 
 	let ftype = checkoutdir.query_file_type(Gio.FileQueryInfoFlags.NOFOLLOW_SYMLINKS, cancellable);
         if (ftype == Gio.FileType.SYMBOLIC_LINK)



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