remove check again, since this is already handled in genQueue

This commit is contained in:
Giovanni Harting 2024-03-10 13:55:14 +01:00
parent 7f2d7f6251
commit 322652b510
1 changed files with 0 additions and 9 deletions

View File

@ -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") {