mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 16:25:19 +00:00
Make repositories arch-aware
Introduce an arch field that can be used to filter repositories based on the local architecture. If arch is provided and matching with the current GOARCH then the repository is enabled
This commit is contained in:
@@ -100,7 +100,7 @@ func TemplateFolders(fromRepo bool, treePaths []string) []string {
|
||||
templateFolders = append(templateFolders, filepath.Join(t, "templates"))
|
||||
}
|
||||
if fromRepo {
|
||||
for _, s := range installer.SystemRepositories(LuetCfg) {
|
||||
for _, s := range installer.SystemRepositories(LuetCfg.SystemRepositories) {
|
||||
templateFolders = append(templateFolders, filepath.Join(s.TreePath, "templates"))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user