fix: Fix i386 build marking x64 builds as completed

This commit is contained in:
ferreo 2024-08-11 14:23:55 +01:00
parent 8e8ed73381
commit e0662bba40

View File

@ -153,6 +153,10 @@ func handleCompletedBuild(item domain.BuildQueueItem, err error) {
status := domain.Built
if err != nil {
status = domain.Error
}
if item.Type != domain.BuildTypeI386 {
if err != nil {
item.Source.BuildAttempts++
} else {
item.Source.BuildAttempts = 0
@ -162,8 +166,10 @@ func handleCompletedBuild(item domain.BuildQueueItem, err error) {
item.Source.Status = status
item.Source.LastBuildStatus = status
updatePackageStatus(&item, status)
updateBuildState(item, status)
packages.UpdateSourcePackage(item.Source)
}
updateBuildState(item, status)
}
func updatePackageStatus(item *domain.BuildQueueItem, status domain.PackageStatus) {