fix: Fix i386 build marking x64 builds as completed
This commit is contained in:
parent
8e8ed73381
commit
e0662bba40
@ -153,17 +153,23 @@ func handleCompletedBuild(item domain.BuildQueueItem, err error) {
|
||||
status := domain.Built
|
||||
if err != nil {
|
||||
status = domain.Error
|
||||
item.Source.BuildAttempts++
|
||||
} else {
|
||||
item.Source.BuildAttempts = 0
|
||||
item.Source.Version = item.BuildVersion
|
||||
}
|
||||
|
||||
item.Source.Status = status
|
||||
item.Source.LastBuildStatus = status
|
||||
updatePackageStatus(&item, status)
|
||||
if item.Type != domain.BuildTypeI386 {
|
||||
if err != nil {
|
||||
item.Source.BuildAttempts++
|
||||
} else {
|
||||
item.Source.BuildAttempts = 0
|
||||
item.Source.Version = item.BuildVersion
|
||||
}
|
||||
|
||||
item.Source.Status = status
|
||||
item.Source.LastBuildStatus = status
|
||||
updatePackageStatus(&item, status)
|
||||
packages.UpdateSourcePackage(item.Source)
|
||||
}
|
||||
|
||||
updateBuildState(item, status)
|
||||
packages.UpdateSourcePackage(item.Source)
|
||||
}
|
||||
|
||||
func updatePackageStatus(item *domain.BuildQueueItem, status domain.PackageStatus) {
|
||||
|
Loading…
Reference in New Issue
Block a user