mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Make intel index override-able by other indexes
This commit is contained in:
parent
bb782ba98f
commit
3a98b2cc05
1 changed files with 6 additions and 7 deletions
|
@ -33,6 +33,12 @@ func SetIndexes(registry *updater.ResourceRegistry, releaseChannel string, delet
|
||||||
// Reset indexes before adding them (again).
|
// Reset indexes before adding them (again).
|
||||||
registry.ResetIndexes()
|
registry.ResetIndexes()
|
||||||
|
|
||||||
|
// Add the intel index first, in order to be able to override it with the
|
||||||
|
// other indexes when needed.
|
||||||
|
registry.AddIndex(updater.Index{
|
||||||
|
Path: "all/intel/intel.json",
|
||||||
|
})
|
||||||
|
|
||||||
// Always add the stable index as a base.
|
// Always add the stable index as a base.
|
||||||
registry.AddIndex(updater.Index{
|
registry.AddIndex(updater.Index{
|
||||||
Path: ReleaseChannelStable + ".json",
|
Path: ReleaseChannelStable + ".json",
|
||||||
|
@ -85,13 +91,6 @@ func SetIndexes(registry *updater.ResourceRegistry, releaseChannel string, delet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the intel index last, as it updates the fastest and should not be
|
|
||||||
// crippled by other faulty indexes. It can only specify versions for its
|
|
||||||
// scope anyway.
|
|
||||||
registry.AddIndex(updater.Index{
|
|
||||||
Path: "all/intel/intel.json",
|
|
||||||
})
|
|
||||||
|
|
||||||
// Set pre-release usage.
|
// Set pre-release usage.
|
||||||
registry.SetUsePreReleases(usePreReleases)
|
registry.SetUsePreReleases(usePreReleases)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue