[gnome-ostree] autobuilder: Make --autoupdate-self take a source directory
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] autobuilder: Make --autoupdate-self take a source directory
- Date: Sat, 20 Apr 2013 15:27:07 +0000 (UTC)
commit fa13aadede36d715e184ae3964b249e80fedd276
Author: Colin Walters <walters verbum org>
Date: Sat Apr 20 11:26:05 2013 -0400
autobuilder: Make --autoupdate-self take a source directory
This allows the builder to update the manifest automatically.
src/js/builtins/autobuilder.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/js/builtins/autobuilder.js b/src/js/builtins/autobuilder.js
index 1100fcc..118b2f2 100644
--- a/src/js/builtins/autobuilder.js
+++ b/src/js/builtins/autobuilder.js
@@ -47,7 +47,7 @@ const Autobuilder = new Lang.Class({
_init: function() {
this.parent();
- this.parser.addArgument('--autoupdate-self', { action: 'storeTrue' });
+ this.parser.addArgument('--autoupdate-self', { action: 'store' });
this.parser.addArgument('--skip', { action: 'append',
help: "Don't process tasks after this" });
@@ -62,7 +62,8 @@ const Autobuilder = new Lang.Class({
execute: function(args, loop, cancellable) {
this._initSnapshot(null, null, cancellable);
- this._autoupdate_self = args.autoupdate_self;
+ if (args.autoupdate_self)
+ this._autoupdate_self = Gio.File.new_for_path(args.autoupdate_self);
this._manifestPath = Gio.File.new_for_path('manifest.json');
@@ -173,7 +174,8 @@ const Autobuilder = new Lang.Class({
return;
if (this._autoupdate_self)
- ProcUtil.runSync(['git', 'pull', '-r'], cancellable)
+ ProcUtil.runSync(['git', 'pull', '-r'], cancellable,
+ { cwd: this._autoupdate_self })
if (this._initialResolveNeeded) {
this._initialResolveNeeded = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]