From ec9bfa5ece7a93c11c78e18fa0a7815f0eb0eff9 Mon Sep 17 00:00:00 2001 From: ferreo Date: Tue, 30 Jul 2024 08:22:29 +0100 Subject: [PATCH] Fix build error handling --- packages/packages.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/packages.go b/packages/packages.go index 60e9a42..c2bbc15 100644 --- a/packages/packages.go +++ b/packages/packages.go @@ -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 {