[gnome-ostree] builddisks: Just make a runtime disk for now



commit 4a7f160d1014cda94cc98cdbd9eec687916e0fb4
Author: Colin Walters <walters verbum org>
Date:   Sun Mar 3 17:10:16 2013 -0500

    builddisks: Just make a runtime disk for now
    
    This will double our speed.

 src/js/tasks/task-builddisks.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/js/tasks/task-builddisks.js b/src/js/tasks/task-builddisks.js
index 0206505..690f9da 100644
--- a/src/js/tasks/task-builddisks.js
+++ b/src/js/tasks/task-builddisks.js
@@ -31,6 +31,7 @@ const BuildUtil = imports.buildutil;
 const LibQA = imports.libqa;
 const JsonDB = imports.jsondb;
 const JsonUtil = imports.jsonutil;
+const JSUtil = imports.jsutil;
 const GuestFish = imports.guestfish;
 
 const IMAGE_RETAIN_COUNT = 2;
@@ -75,6 +76,8 @@ const TaskBuildDisks = new Lang.Class({
         let repo = buildData['snapshot']['repo'];
 
         for (let targetName in targets) {
+            if (!JSUtil.stringEndswith(targetName, '-runtime'))
+                continue;
             let targetRevision = buildData['targets'][targetName];
                  let squashedName = targetName.replace(/\//g, '_');
                  let diskName = osname + '-' + squashedName + '-disk.qcow2';


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