From ce9686a49518f465652dc891ab469b48e75147fc Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 12 Sep 2021 17:40:17 +0200 Subject: [PATCH] purge delayed packages as a way to prevent non-buildable packages staying in repo in an outdated state --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index a758d64..bfc08ee 100644 --- a/main.go +++ b/main.go @@ -313,6 +313,11 @@ func (b *BuildManager) parseWorker() { dbLock.Unlock() } + // Purge delayed packages in case delay is caused by inconsistencies in svn2git. + // Worst case would be clients downloading a package update twice, once from their official mirror, + // and then after build from ALHP. Best case we prevent a not buildable package from staying in the repos + // in an outdated version. + b.repoPurge[pkg.FullRepo] <- pkg b.parseWG.Done() continue }