stop adding an empty slice if no packages are to be added
This commit is contained in:
7
utils.go
7
utils.go
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user