autobuilder: Don't put trees which failed to compose into products-built.json

Otherwise we attempt to run ensure-disk-caches on them which won't
work.
This commit is contained in:
Colin Walters 2014-02-04 11:37:17 -05:00
parent 0c6c8f2e8f
commit 7a9ea01040

View File

@ -168,9 +168,9 @@ const TaskBuild = new Lang.Class({
this._composeProduct(ref, productName, treeName, products[productName][treeName],
release, architecture,
cancellable);
productTrees[ref] = revision;
switch (result) {
case this.BuildState.successful: {
productTrees[ref] = revision;
successful.push(ref);
}
break;
@ -179,6 +179,7 @@ const TaskBuild = new Lang.Class({
}
break;
case this.BuildState.unchanged: {
productTrees[ref] = revision;
unchanged.push(ref);
}
break;