added mirrored repos to config

This commit is contained in:
2026-04-20 19:08:44 -06:00
parent 727e9f40af
commit 6fdf5a4a52
4 changed files with 12 additions and 7 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ type Cache struct {
client http.Client
}
func NewCache(cacheRoot string, mirrorURL string) *Cache {
func NewCache(cacheRoot string, mirrorURL string, mirroredRepos []string) *Cache {
transport := &http.Transport{
DialContext: (&net.Dialer{
Timeout: 5 * time.Second,
@@ -33,7 +33,7 @@ func NewCache(cacheRoot string, mirrorURL string) *Cache {
return &Cache{
cacheRoot: cacheRoot,
mirrorURL: mirrorURL,
mirroredRepos: []string{"core", "extra", "multilib"},
mirroredRepos: mirroredRepos,
client: http.Client{
Timeout: 15 * time.Second,
Transport: transport,