purge delayed packages as a way to prevent non-buildable packages staying in repo in an outdated state

This commit is contained in:
2021-09-12 17:40:17 +02:00
parent 1cf45cedb0
commit ce9686a495

View File

@@ -313,6 +313,11 @@ func (b *BuildManager) parseWorker() {
dbLock.Unlock() 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() b.parseWG.Done()
continue continue
} }