[gnome-ostree] build: Define correct argument name for snapshot



commit 419ee943b481ec642392b20f82b8584cc0b71d23
Author: Colin Walters <walters verbum org>
Date:   Thu Jan 10 09:38:27 2013 -0500

    build: Define correct argument name for snapshot
    
    It's --snapshot, not --src-snapshot.

 src/ostbuild/js/builtins/autobuilder.js |    2 +-
 src/ostbuild/js/builtins/build.js       |    2 +-
 src/ostbuild/js/builtins/git_mirror.js  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ostbuild/js/builtins/autobuilder.js b/src/ostbuild/js/builtins/autobuilder.js
index 864fd38..0e1a88f 100644
--- a/src/ostbuild/js/builtins/autobuilder.js
+++ b/src/ostbuild/js/builtins/autobuilder.js
@@ -203,7 +203,7 @@ const AutoBuilder = new Lang.Class({
 	let workdir = task.path;
 	let transientSnapshotPath = this.workdir.get_child(this.prefix + '-src-snapshot.json');
 	GSystem.file_linkcopy(this._source_snapshot_path, transientSnapshotPath, Gio.FileCopyFlags.OVERWRITE, null);
-	let args = ['ostbuild', 'build', '--src-snapshot=' + transientSnapshotPath.get_path()];
+	let args = ['ostbuild', 'build', '--snapshot=' + transientSnapshotPath.get_path()];
 	args.push.apply(args, this._queued_force_builds);
 	this._queued_force_builds = [];
 
diff --git a/src/ostbuild/js/builtins/build.js b/src/ostbuild/js/builtins/build.js
index 0b7b2e6..304c30c 100644
--- a/src/ostbuild/js/builtins/build.js
+++ b/src/ostbuild/js/builtins/build.js
@@ -632,7 +632,7 @@ const Build = new Lang.Class({
 
         let parser = new ArgParse.ArgumentParser("Build multiple components and generate trees");
         parser.addArgument('--prefix');
-        parser.addArgument('--src-snapshot');
+        parser.addArgument('--snapshot');
         parser.addArgument('--patches-path');
         parser.addArgument('components', {nargs:'*'});
         
diff --git a/src/ostbuild/js/builtins/git_mirror.js b/src/ostbuild/js/builtins/git_mirror.js
index 9858f43..6c63aab 100644
--- a/src/ostbuild/js/builtins/git_mirror.js
+++ b/src/ostbuild/js/builtins/git_mirror.js
@@ -43,7 +43,7 @@ const GitMirror = new Lang.Class({
         let parser = new ArgParse.ArgumentParser("Update internal git mirror for one or more components");
         parser.addArgument('--prefix');
         parser.addArgument('--manifest');
-        parser.addArgument('--src-snapshot');
+        parser.addArgument('--snapshot');
         parser.addArgument('--fetch', {action:'storeTrue',
 				       help:"Also do a git fetch for components"});
         parser.addArgument(['-k', '--keep-going'], {action:'storeTrue',



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