osbuild-pipeline: Search the current dir for repository configs

We treat the osbuild-pipeline as a tool run only within the source, therefore
we should search for the repository configs only in the current directory.
This commit is contained in:
Ondřej Budai 2020-01-27 11:19:14 +01:00 committed by Lars Karlitski
parent b0ddbc744a
commit 679c8c40cd

View file

@ -62,7 +62,7 @@ func main() {
}
}
distros := distro.NewRegistry([]string{"/etc/osbuild-composer", "/usr/share/osbuild-composer"})
distros := distro.NewRegistry([]string{"."})
d := distros.GetDistro(distroArg)
if d == nil {
panic("unknown distro: " + distroArg)