Update to latest portbase updater changes and register index files

This commit is contained in:
Patrick Pacher 2020-05-04 09:59:17 +02:00
parent 6bb0ac2a95
commit a7412327e8
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D
2 changed files with 36 additions and 0 deletions

View file

@ -176,6 +176,24 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) {
return err
}
registry.AddIndex(updater.Index{
Path: "stable.json",
Stable: true,
Beta: false,
})
registry.AddIndex(updater.Index{
Path: "beta.json",
Stable: false,
Beta: true,
})
registry.AddIndex(updater.Index{
Path: "all/intel/intel.json",
Stable: true,
Beta: false,
})
err = registry.LoadIndexes()
if err != nil {
return err

View file

@ -132,6 +132,24 @@ func start() error {
return err
}
registry.AddIndex(updater.Index{
Path: "stable.json",
Stable: true,
Beta: false,
})
registry.AddIndex(updater.Index{
Path: "beta.json",
Stable: false,
Beta: true,
})
registry.AddIndex(updater.Index{
Path: "all/intel/intel.json",
Stable: true,
Beta: false,
})
err = registry.LoadIndexes()
if err != nil {
return err