mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Merge pull request #124 from safing/fix/updater-empty-indexes
Warn instead of failing when updater index is empty
This commit is contained in:
commit
9d6a8d91e5
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue