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