tree-wide: use an absolute path to dnf-json

Previously, all the osbuild-composer tools must be run from a directory with
dnf-json. This was often confusing, especially with the dnf-json-tests. This
commit changes the path to be absolute, so this is no longer an issue.
This commit is contained in:
Ondřej Budai 2020-05-19 11:04:34 +02:00 committed by Tom Gundersen
parent b93df4b524
commit c00cf1ac11
4 changed files with 9 additions and 7 deletions

View file

@ -137,7 +137,7 @@ func main() {
if err != nil {
panic("os.UserHomeDir(): " + err.Error())
}
rpmmd := rpmmd.NewRPMMD(path.Join(homeDir, ".cache/osbuild-composer/rpmmd"), "./dnf-json")
rpmmd := rpmmd.NewRPMMD(path.Join(homeDir, ".cache/osbuild-composer/rpmmd"), "/usr/libexec/osbuild-composer/dnf-json")
s := store.New(&cwd, a, nil)
if s == nil {