fix for certain skipped packages still being in repo and not getting deleted
This commit is contained in:
parent
f8c878edbf
commit
f3fa0664f9
@ -90,3 +90,4 @@ linters:
|
||||
# remove for new projects
|
||||
- errname
|
||||
- goerr113
|
||||
- depguard
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user