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

This commit is contained in:
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 # remove for new projects
- errname - errname
- goerr113 - goerr113
- depguard

View File

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