build: Fix exception if we don't have a previous build
This commit is contained in:
parent
06a6c2878a
commit
8fa595cca7
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user