mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Warn instead of failing when updater index is empty
This commit is contained in:
parent
99514ab312
commit
9b307b3bea
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ func (reg *ResourceRegistry) loadIndexFile(idx Index) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(releases) == 0 {
|
if len(releases) == 0 {
|
||||||
return fmt.Errorf("%s is empty", path)
|
log.Warningf("%s: index %s is empty", idx.Path)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
err = reg.AddResources(releases, false, idx.Stable, idx.Beta)
|
err = reg.AddResources(releases, false, idx.Stable, idx.Beta)
|
||||||
|
|
Loading…
Add table
Reference in a new issue