mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Update to latest portbase updater changes and register index files
This commit is contained in:
parent
6bb0ac2a95
commit
a7412327e8
2 changed files with 36 additions and 0 deletions
|
@ -176,6 +176,24 @@ func cmdSetup(cmd *cobra.Command, args []string) (err error) {
|
||||||
return err
|
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()
|
err = registry.LoadIndexes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -132,6 +132,24 @@ func start() error {
|
||||||
return err
|
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()
|
err = registry.LoadIndexes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Reference in a new issue