tasks: Update for new products-built.json syntax
This commit is contained in:
parent
148ca0d74e
commit
ff08e35f98
@ -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);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user