From 224bd6b341cd91226fe50c7617e6afdea502c8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 9 Jun 2020 14:31:51 +0200 Subject: [PATCH] rpmmd: rely on dnf-json shebang instead of using PATH python RHEL doesn't have python3 in PATH by default. Instead it has /usr/libexec/ platform-python. When building the RPM, RHEL correctly mangles dnf-json's shebang to the platform python. This commit switches osbuild-composer to use this shebang because it should always respect target platform's default python binary. Fixes #745 --- internal/rpmmd/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpmmd/repository.go b/internal/rpmmd/repository.go index d34c30862..90e3a3f4b 100644 --- a/internal/rpmmd/repository.go +++ b/internal/rpmmd/repository.go @@ -241,7 +241,7 @@ func runDNF(dnfJsonPath string, command string, arguments interface{}, result in arguments, } - cmd := exec.Command("python3", dnfJsonPath) + cmd := exec.Command(dnfJsonPath) stdin, err := cmd.StdinPipe() if err != nil {