[gnome-continuous] autobuilder: fix extracting version from buildName
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous] autobuilder: fix extracting version from buildName
- Date: Tue, 16 Sep 2014 19:48:35 +0000 (UTC)
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]