From 322652b510577f4e7d04fd4c458f7747abf55659 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 10 Mar 2024 13:55:14 +0100 Subject: [PATCH] remove check again, since this is already handled in genQueue --- proto_package.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/proto_package.go b/proto_package.go index ccb4799..fb41e07 100644 --- a/proto_package.go +++ b/proto_package.go @@ -112,15 +112,6 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) { p.Version = constructVersion(p.Srcinfo.Pkgver, p.Srcinfo.Pkgrel, p.Srcinfo.Epoch) p.DBPackage = p.DBPackage.Update().SetPackages(packages2slice(p.Srcinfo.Packages)).SaveX(ctx) - repoVersion, err := p.repoVersion() - if err == nil { - if alpm.VerCmp(repoVersion, p.Version) > 0 { - log.Infof("skipped %s: package already built", p.Srcinfo.Pkgbase) - p.DBPackage = p.DBPackage.Update().SetStatus(dbpackage.StatusLatest).SetTagRev(p.State.TagRev).SaveX(ctx) - return time.Since(start), err - } - } - // skip haskell packages, since they cannot be optimized currently (no -O3 & march has no effect as far as I know) if Contains(p.Srcinfo.MakeDepends, "ghc") || Contains(p.Srcinfo.MakeDepends, "haskell-ghc") || Contains(p.Srcinfo.Depends, "ghc") || Contains(p.Srcinfo.Depends, "haskell-ghc") {