Merge pull request #124 from safing/fix/updater-empty-indexes

Warn instead of failing when updater index is empty
This commit is contained in:
Daniel 2021-04-19 14:07:23 +02:00 committed by GitHub
commit 9d6a8d91e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,8 @@ func (reg *ResourceRegistry) loadIndexFile(idx Index) error {
}
if len(releases) == 0 {
return fmt.Errorf("%s is empty", path)
log.Warningf("%s: index %s is empty", reg.Name, idx.Path)
return nil
}
err = reg.AddResources(releases, false, idx.Stable, idx.Beta)