[gnome-continuous] autobuilder: fix extracting version from buildName



commit 38673f2c504da0c8b2d38216a6fc7a4802223373
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Sep 16 15:38:06 2014 -0400

    autobuilder: fix extracting version from buildName
    
    The code was expecting a path relative to the build dir, not the
    work dir.

 src/js/builtins/autobuilder.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/js/builtins/autobuilder.js b/src/js/builtins/autobuilder.js
index 0aa18d1..6e29899 100644
--- a/src/js/builtins/autobuilder.js
+++ b/src/js/builtins/autobuilder.js
@@ -125,7 +125,10 @@ const Autobuilder = new Lang.Class({
         BuildUtil.atomicSymlinkSwap(resultsPath, task.buildPath, null);
 
         if (task.name == 'build' && success) {
-            this._buildsDir.updateTargets(VersionedDir.relpathToVersion(task.buildName),
+            if (task.buildName.indexOf('builds/') != 0)
+                throw new Error("Unexpected buildName: ", task.buildName);
+            let relpath = task.buildName.substring(7);
+            this._buildsDir.updateTargets(VersionedDir.relpathToVersion(relpath),
                                           cancellable);
         }
 


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