tasks: Update for new products-built.json syntax

This commit is contained in:
Colin Walters 2014-02-12 19:25:42 -05:00
parent 148ca0d74e
commit ff08e35f98
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ const TaskEnsureDiskCaches = new Lang.Class({
this._productsBuilt = JsonUtil.loadJson(this.builddir.get_child('products-built.json'), cancellable);
let productTrees = this._productsBuilt['trees'];
for (let ref in productTrees) {
this._ensureDiskForProduct(ref, productTrees[ref], cancellable);
this._ensureDiskForProduct(ref, productTrees[ref]['rev'], cancellable);
}
},
});

View File

@ -140,7 +140,7 @@ const TaskZDisks = new Lang.Class({
this._productsBuilt = JsonUtil.loadJson(this.builddir.get_child('products-built.json'), cancellable);
let productTrees = this._productsBuilt['trees'];
for (let ref in productTrees) {
this._exportDiskForProduct(ref, productTrees[ref], cancellable);
this._exportDiskForProduct(ref, productTrees[ref]['rev'], cancellable);
}
}
});

View File

@ -642,7 +642,7 @@ const TestBase = new Lang.Class({
this._productsBuilt = JsonUtil.loadJson(this.builddir.get_child('products-built.json'), cancellable);
let productTrees = this._productsBuilt['trees'];
for (let ref in productTrees) {
let revision = productTrees[ref];
let revision = productTrees[ref]['rev'];
let snapshotDisk = this.getDiskSnapshotForRevision(ref, revision, cancellable);
let refUnix = ref.replace(/\//g, '-');
let refWorkdir = Gio.File.new_for_path('work-' + refUnix);