forked from ALHP/ALHP.GO
remove packages skipped or of undefined status
This commit is contained in:
3
main.go
3
main.go
@@ -408,9 +408,12 @@ func (b *BuildManager) syncWorker(ctx context.Context) error {
|
|||||||
eligible, err := pkg.isEligible(ctx)
|
eligible, err := pkg.isEligible(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Infof("Unable to determine status for package %s: %v", pkg.Pkgbase, err)
|
log.Infof("Unable to determine status for package %s: %v", pkg.Pkgbase, err)
|
||||||
|
b.repoPurge[pkg.FullRepo] <- []*ProtoPackage{pkg}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
if !eligible {
|
if !eligible {
|
||||||
log.Debugf("skipped package %s (%v)", pkg.Pkgbase, err)
|
log.Debugf("skipped package %s (%v)", pkg.Pkgbase, err)
|
||||||
|
b.repoPurge[pkg.FullRepo] <- []*ProtoPackage{pkg}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user