[gnome-ostree] autobuilder: Honor --prefix and --autoupdate-self



commit a81732461132d31aa88cd9ec4d0c81820bf095fc
Author: Colin Walters <walters verbum org>
Date:   Mon Jan 28 17:14:28 2013 -0500

    autobuilder: Honor --prefix and --autoupdate-self

 src/ostbuild/js/builtins/autobuilder.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/js/builtins/autobuilder.js b/src/ostbuild/js/builtins/autobuilder.js
index 747413e..4fe1141 100644
--- a/src/ostbuild/js/builtins/autobuilder.js
+++ b/src/ostbuild/js/builtins/autobuilder.js
@@ -47,17 +47,23 @@ const Autobuilder = new Lang.Class({
     
     _init: function() {
 	this.parent();
+
+        this.parser.addArgument('--prefix');
+        this.parser.addArgument('--autoupdate-self', { action: 'storeTrue' });
+
 	this._build_needed = true;
 	this._full_resolve_needed = true;
 	this._queued_force_resolve = [];
-	this._autoupdate_self = true;
 	this._resolve_timeout = 0;
 	this._source_snapshot_path = null;
 	this._prev_source_snapshot_path = null;
     },
 
     execute: function(args, loop, cancellable) {
-	this._initSnapshot(null, null, cancellable);
+	this._initSnapshot(args.prefix, null, cancellable);
+
+	this._autoupdate_self = args.autoupdate_self;
+
 	this._status_path = this.workdir.get_child('autobuilder-' + this.prefix + '.json');
 	this._manifestPath = Gio.File.new_for_path('manifest.json');
 



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