repository loader now support .yaml extension

This commit is contained in:
Daniele Rondina
2020-07-04 20:07:32 +02:00
parent e28a4753f8
commit 364b5648b4
3 changed files with 21 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ import (
)
func LoadRepositories(c *LuetConfig) error {
var regexRepo = regexp.MustCompile(`.yml$`)
var regexRepo = regexp.MustCompile(`.yml$|.yaml$`)
for _, rdir := range c.RepositoriesConfDir {
Debug("Parsing Repository Directory", rdir, "...")