From 9b28ceebb8f3ddcdb297e70a9a3a4558c3d27173 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 12 Aug 2022 23:19:18 +0200 Subject: [PATCH] Revert "Added purge for 'ancient' out-of-date packages" This reverts commit e911be6b6e0ca6b44fb0f0bf4893b1034f31c4dc. --- proto_package.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/proto_package.go b/proto_package.go index 642ea7f..c6f15cc 100644 --- a/proto_package.go +++ b/proto_package.go @@ -5,7 +5,6 @@ import ( "context" "crypto/sha256" "encoding/hex" - "errors" "fmt" "git.harting.dev/ALHP/ALHP.GO/ent" "git.harting.dev/ALHP/ALHP.GO/ent/dbpackage" @@ -121,10 +120,6 @@ func (p *ProtoPackage) isEligible(ctx context.Context) (bool, error) { if local != nil { log.Infof("Delayed %s: not all dependencies are up to date (local: %s==%s, sync: %s==%s)", p.Srcinfo.Pkgbase, local.Name(), local.Version(), local.Name(), syncVersion) p.DbPackage.Update().SetSkipReason(fmt.Sprintf("waiting for %s==%s", local.Name(), syncVersion)).ExecX(ctx) - - if time.Since(p.DbPackage.BuildTimeStart).Hours() >= 48 { - return false, errors.New("package out of date for more than 48 hours") - } } else { log.Infof("Delayed %s: not all dependencies are up to date or resolvable", p.Srcinfo.Pkgbase) p.DbPackage.Update().SetSkipReason("waiting for mirror").ExecX(ctx)