Move python3-libdnf5 to fedora only

ref https://gitlab.com/redhat/centos-stream/containers/bootc/-/merge_requests/558#note_2492110138

Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Colin Walters 2025-05-08 08:52:21 -04:00
parent 82b8ca7ba9
commit 58570a1e60
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,7 @@
include:
- fedora-includes/generic.yaml
- standard/manifest.yaml
packages:
# Make Ansible "package" builtin work by default
- python3-libdnf5

View file

@ -42,8 +42,6 @@ packages:
- zram-generator
# This one is in Python so isn't in FCOS, but we can safely add it here.
- sos
# Make Ansible "package" builtin work by default
- python3-libdnf5
# Make Ansible "package_facts" builtin work by default
- python3-rpm

13
tests/rootfs/cases/fedora-only Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
set -xeuo pipefail
. /usr/lib/os-release
case "${ID}" in
fedora)
# https://gitlab.com/fedora/bootc/base-images/-/merge_requests/172
if rpm -q python3 &>/dev/null; then
rpm -q python3-libdnf5
fi
;;
*)
;;
esac