added split-package check to housekeeping

This commit is contained in:
2022-02-07 17:46:16 +01:00
parent 02928a4d0d
commit b484f7d4d7
2 changed files with 54 additions and 17 deletions

View File

@@ -652,9 +652,10 @@ func (b *BuildManager) syncWorker() {
wg := new(sync.WaitGroup)
for _, repo := range repos {
wg.Add(1)
splitRepo := strings.Split(repo, "-")
repo := repo
go func() {
err := housekeeping(repo, wg)
err := housekeeping(splitRepo[0], strings.Join(splitRepo[1:], "-"), wg)
if err != nil {
log.Warningf("[%s] housekeeping failed: %v", repo, err)
}