[gnome-ostree] build: Drop support for forcing specific components



commit 6c8b2b15db8d7e75b338d363e7772c301241bab5
Author: Colin Walters <walters verbum org>
Date:   Mon Jan 21 22:22:23 2013 -0500

    build: Drop support for forcing specific components
    
    Some use cases for this are solved with the epoch stuff.  Others are
    already handled via local:.
    
    More generically I'll later add a generic tainting mechanism, similar
    to bitbake -f.

 src/ostbuild/js/builtins/autobuilder.js |   14 --------------
 src/ostbuild/js/builtins/build.js       |    7 -------
 2 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/ostbuild/js/builtins/autobuilder.js b/src/ostbuild/js/builtins/autobuilder.js
index a2bcfaa..97beb83 100644
--- a/src/ostbuild/js/builtins/autobuilder.js
+++ b/src/ostbuild/js/builtins/autobuilder.js
@@ -32,9 +32,6 @@ const Config = imports.config;
 const loop = GLib.MainLoop.new(null, true);
 
 var AutoBuilderIface = <interface name="org.gnome.OSTreeBuild.AutoBuilder">
-<method name="queueBuild">
-    <arg type="as" direction="in" />
-</method>
 <method name="queueResolve">
     <arg type="as" direction="in" />
 </method>
@@ -55,7 +52,6 @@ const AutoBuilder = new Lang.Class({
 
 	this._build_needed = true;
 	this._full_resolve_needed = true;
-	this._queued_force_builds = [];
 	this._queued_force_resolve = [];
 	this._autoupdate_self = true;
 	this._resolve_timeout = 0;
@@ -109,14 +105,6 @@ const AutoBuilder = new Lang.Class({
 	return this._status;
     },
 
-    queueBuild: function(components) {
-	this._queued_force_builds.push.apply(this._queued_force_builds, components);
-	this._build_needed = true;
-	print("queued builds: " + this._queued_force_builds);
-	if (this._build_proc == null)
-	    this._run_build();
-    },
-
     queueResolve: function(components) {
 	this._queued_force_resolve.push.apply(this._queued_force_resolve, components);
 	print("queued resolves: " + this._queued_force_resolve);
@@ -206,8 +194,6 @@ const AutoBuilder = new Lang.Class({
 	JsonUtil.writeJsonFileAtomic(metaPath, meta, cancellable);
 	
 	let args = ['ostbuild', 'build', '--snapshot=' + snapshotName];
-	args.push.apply(args, this._queued_force_builds);
-	this._queued_force_builds = [];
 
 	let context = new GSystem.SubprocessContext({ argv: args });
 	let task = this._build_taskset.start(context,
diff --git a/src/ostbuild/js/builtins/build.js b/src/ostbuild/js/builtins/build.js
index 6a90f21..a43eba9 100644
--- a/src/ostbuild/js/builtins/build.js
+++ b/src/ostbuild/js/builtins/build.js
@@ -645,7 +645,6 @@ const Build = new Lang.Class({
         parser.addArgument('--prefix');
         parser.addArgument('--snapshot');
         parser.addArgument('--patches-path');
-        parser.addArgument('components', {nargs:'*'});
         
         let args = parser.parse(argv);
 	this.args = args;
@@ -710,12 +709,6 @@ const Build = new Lang.Class({
             componentToArches[name] = componentArches;
 	}
 
-        for (let i = 0; i < args.components.length; i++) {
-	    let name = args.components[i];
-            let component = this._snapshot.getComponent(name);
-            this.forceBuildComponents[name] = true;
-	}
-
         let componentsToBuild = [];
         let componentSkippedCount = 0;
         let componentBuildRevs = {};



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