diff --git a/buildqueue/worker.go b/buildqueue/worker.go index 2e86ffb..bba2bdb 100644 --- a/buildqueue/worker.go +++ b/buildqueue/worker.go @@ -56,9 +56,9 @@ func StartPackageQueueWorker(ctx context.Context) { return true }) if needsBuild { - typ := domain.BuildTypeNormal + typ := domain.BuildTypeLTO if errPreviously { - typ = domain.BuildTypeLTO + typ = domain.BuildTypeNormal } buildItem := domain.BuildQueueItem{ Source: v, diff --git a/packages/packages.go b/packages/packages.go index 43059ff..5a0d00b 100644 --- a/packages/packages.go +++ b/packages/packages.go @@ -425,9 +425,6 @@ func GetPackagesCount() domain.PackagesCount { case domain.Error: count.Error++ } - if pkg.LastBuildStatus == domain.Error { - count.Error++ - } return false }) return true