stop adding an empty slice if no packages are to be added

This commit is contained in:
2022-01-18 15:13:10 +01:00
parent 907add4e07
commit fafa03524e
2 changed files with 4 additions and 15 deletions

View File

@@ -477,9 +477,10 @@ func movePackagesLive(fullRepo string) error {
})
}
log.Infof("[%s] Adding %d packages", fullRepo, len(toAdd))
buildManager.repoAdd[fullRepo] <- toAdd
if len(toAdd) > 0 {
log.Infof("[%s] Adding %d packages", fullRepo, len(toAdd))
buildManager.repoAdd[fullRepo] <- toAdd
}
return nil
}