[gnome-continuous] build: Delete composed trees after completion



commit 44ba3a7da17b22a781f4cedb7518662078efc3a5
Author: Colin Walters <walters verbum org>
Date:   Mon Oct 14 20:27:44 2013 -0400

    build: Delete composed trees after completion
    
    Now that we're keeping builds around "forever", we really don't need
    to keep these temporary working directories.

 src/js/tasks/task-build.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index 4be3590..e71bbc5 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -1355,6 +1355,7 @@ const TaskBuild = new Lang.Class({
                this._installKernelAndInitramfs(kernelInitramfsData, composeRootdir, cancellable);
                this._cleanupGarbage(composeRootdir, cancellable);
                let [treename, ostreeRev] = this._commitComposedTree(runtimeTargetName, composeRootdir, 
cancellable);
+               GSystem.shutil_rm_rf(composeRootdir, cancellable);
                targetRevisions[treename] = ostreeRev;
            }
        }
@@ -1407,6 +1408,7 @@ const TaskBuild = new Lang.Class({
 
            let composeRootdir = this._checkoutOneTreeCore(rootName, composeContents, cancellable, { 
runTriggers: false });
            let [treename, rev] = this._commitComposedTree(rootName, composeRootdir, cancellable);
+           GSystem.shutil_rm_rf(composeRootdir, cancellable);
            finalInstalledTestRevisions[treename] = rev;
        }
 


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