runner: add platform-python only for RHEL 8+

No platform-python for RHEL 7.
This commit is contained in:
Achilleas Koutsou 2023-01-23 20:10:04 +01:00 committed by Tomáš Hozza
parent c12f2c61e2
commit cef5f3d3bd

View file

@ -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