remove check again, since this is already handled in genQueue
This commit is contained in:
parent
7f2d7f6251
commit
322652b510
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue