fix for certain skipped packages still being in repo and not getting deleted

This commit is contained in:
Giovanni Harting 2024-09-01 15:12:10 +02:00
parent f8c878edbf
commit f3fa0664f9
2 changed files with 3 additions and 2 deletions

View File

@ -90,3 +90,4 @@ linters:
# remove for new projects
- errname
- goerr113
- depguard

View File

@ -241,8 +241,8 @@ func housekeeping(repo, march string, wg *sync.WaitGroup) error {
if err != nil {
return err
}
case dbPkg.Status == dbpackage.StatusSkipped && dbPkg.RepoVersion != "" && strings.HasPrefix(dbPkg.SkipReason, "blacklisted"):
log.Infof("[HK] delete blacklisted package %s->%s", fullRepo, dbPkg.Pkgbase)
case dbPkg.Status == dbpackage.StatusSkipped && dbPkg.RepoVersion != "" && !strings.HasPrefix(dbPkg.SkipReason, "delayed"):
log.Infof("[HK] delete skipped package %s->%s", fullRepo, dbPkg.Pkgbase)
pkg := &ProtoPackage{
FullRepo: fullRepo,
March: march,