[gnome-ostree] build: Add forceComponents parameter



commit 71de1eaa621fd735c8b3d414cf6c0636d4d5b730
Author: Colin Walters <walters verbum org>
Date:   Wed Mar 13 11:09:39 2013 -0400

    build: Add forceComponents parameter
    
    So it's easy to force a rebuild from the terminal, too.

 src/js/tasks/task-build.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index ebfe702..d837524 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -49,6 +49,8 @@ const TaskBuild = new Lang.Class({
     TaskName: "build",
     TaskAfter: ['resolve'],
 
+    DefaultParameters: {forceComponents: []},
+
     _resolveRefs: function(refs) {
         if (refs.length == 0)
             return [];
@@ -748,6 +750,8 @@ const TaskBuild = new Lang.Class({
        this.subworkdir = Gio.File.new_for_path('.');
 
         this.forceBuildComponents = {};
+       for (let i = 0; i < this.parameters.forceComponents.length; i++)
+           this.forceBuildComponents[this.parameters.forceComponents[i]] = true;
         this.cachedPatchdirRevision = null;
 
        let snapshotDir = this.workdir.get_child('snapshots');


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