Fix build error handling

This commit is contained in:
ferreo 2024-07-30 08:22:29 +01:00
parent e36124cab6
commit ec9bfa5ece

View File

@ -61,7 +61,11 @@ func ProcessPackages() error {
if newPkg.Version != existingPkg.Version ||
newPkg.Status != existingPkg.Status ||
newPkg.NewVersion != existingPkg.NewVersion {
newPkg.LastBuildStatus = domain.Error
if newPkg.Status == domain.Current {
mergedPackage.Packages.Set(pkgName, newPkg)
return true
}
newPkg.LastBuildStatus = existingPkg.LastBuildStatus
newPkg.BuildAttempts = existingPkg.BuildAttempts
mergedPackage.Packages.Set(pkgName, newPkg)
} else {