Merge pull request #48 from safing/feature/portbase-updater

Update to latest portbase updater changes and register index files
This commit is contained in:
Daniel
2020-05-04 14:45:42 +02:00
committed by GitHub
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