forked from ALHP/ALHP.GO
added removing repo version of blacklisted packages to housekeeping
This commit is contained in:
12
utils.go
12
utils.go
@@ -650,11 +650,18 @@ func housekeeping(repo string, march string, wg *sync.WaitGroup) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
} else if dbPkg.Status == dbpackage.StatusSkipped && dbPkg.RepoVersion != "" && strings.HasPrefix(dbPkg.SkipReason, "blacklisted") {
|
||||
log.Infof("[HK] delete blacklisted package %s", dbPkg.Pkgbase)
|
||||
pkg := &ProtoPackage{
|
||||
FullRepo: fullRepo,
|
||||
March: march,
|
||||
DbPackage: dbPkg,
|
||||
}
|
||||
buildManager.repoPurge[fullRepo] <- []*ProtoPackage{pkg}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
// check queued packages for eligibility
|
||||
// check packages for eligibility
|
||||
log.Debugf("[HK/%s] check queued packages", fullRepo)
|
||||
qPackages, err := db.DbPackage.Query().Where(
|
||||
dbpackage.And(
|
||||
@@ -689,7 +696,6 @@ func housekeeping(repo string, march string, wg *sync.WaitGroup) error {
|
||||
log.Warningf("[HK/%s] unable to determine status for %s: %v", fullRepo, dbPkg.Pkgbase, err)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
log.Debugf("[HK/%s] all tasks finished", fullRepo)
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user