From cef5f3d3bdc1510871c59b6921da94f1f2b26522 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Mon, 23 Jan 2023 20:10:04 +0100 Subject: [PATCH] runner: add platform-python only for RHEL 8+ No platform-python for RHEL 7. --- internal/runner/rhel.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/runner/rhel.go b/internal/runner/rhel.go index 7dcb5ca44..8b921a211 100644 --- a/internal/runner/rhel.go +++ b/internal/runner/rhel.go @@ -13,14 +13,15 @@ func (r *RHEL) String() string { func (p *RHEL) GetBuildPackages() []string { packages := []string{ - "glibc", // ldconfig - "platform-python", // osbuild + "glibc", // ldconfig } if p.Major >= 8 { packages = append(packages, - "systemd", // systemd-tmpfiles and systemd-sysusers + "systemd", // systemd-tmpfiles and systemd-sysusers + "platform-python", // osbuild ) } + if p.Major < 9 { packages = append(packages, // The RHEL 8 runner in osbuild runs with platform-python but