build: Fix exception if we don't have a previous build

This commit is contained in:
Colin Walters 2014-01-26 05:01:42 -05:00
parent 06a6c2878a
commit 8fa595cca7

View File

@ -87,7 +87,7 @@ const TaskBuild = new Lang.Class({
print("Build of " + productName + " failed");
return [this.BuildState.failed, origRevision];
}
let [,newRevision] = this.ostreeRepo.resolve_rev(ref, false);
let [,newRevision] = this.ostreeRepo.resolve_rev(ref, true);
if (origRevision == newRevision)
return [this.BuildState.unchanged, newRevision];
return [this.BuildState.successful, newRevision];