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