From ba2a10bde48ec0569baee07b35930bb405e0653d Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 8 Nov 2023 13:33:52 +0100 Subject: [PATCH] configs: mandriva provides python-* not python3-* packages Fixes: #1251 --- mock-core-configs/etc/mock/templates/openmandriva-cooker.tpl | 1 + mock-core-configs/etc/mock/templates/openmandriva-rolling.tpl | 1 + releng/release-notes-next/mandriva-dnf-python.config | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 releng/release-notes-next/mandriva-dnf-python.config diff --git a/mock-core-configs/etc/mock/templates/openmandriva-cooker.tpl b/mock-core-configs/etc/mock/templates/openmandriva-cooker.tpl index 77d8c9d1f..faaee231a 100644 --- a/mock-core-configs/etc/mock/templates/openmandriva-cooker.tpl +++ b/mock-core-configs/etc/mock/templates/openmandriva-cooker.tpl @@ -4,6 +4,7 @@ config_opts['extra_chroot_dirs'] = [ '/run/lock', ] config_opts['releasever'] = '5.0' config_opts['macros']['%cross_compiling'] = '0' # Mock should generally be considered native builds config_opts['package_manager'] = 'dnf' +config_opts['dnf_install_command'] = 'install python-dnf python-dnf-plugins-core' config_opts['description'] = 'OpenMandriva Cooker {{ releasever }}' config_opts['bootstrap_image'] = 'docker.io/openmandriva/cooker:latest' diff --git a/mock-core-configs/etc/mock/templates/openmandriva-rolling.tpl b/mock-core-configs/etc/mock/templates/openmandriva-rolling.tpl index 5783c6da6..2d110e9c3 100644 --- a/mock-core-configs/etc/mock/templates/openmandriva-rolling.tpl +++ b/mock-core-configs/etc/mock/templates/openmandriva-rolling.tpl @@ -4,6 +4,7 @@ config_opts['extra_chroot_dirs'] = [ '/run/lock', ] config_opts['releasever'] = '5.0' config_opts['macros']['%cross_compiling'] = '0' # Mock should generally be considered native builds config_opts['package_manager'] = 'dnf' +config_opts['dnf_install_command'] = 'install python-dnf python-dnf-plugins-core' config_opts['description'] = 'OpenMandriva Rolling' # Is there a corresponding rolling image? #1171 diff --git a/releng/release-notes-next/mandriva-dnf-python.config b/releng/release-notes-next/mandriva-dnf-python.config new file mode 100644 index 000000000..1a78dc8f4 --- /dev/null +++ b/releng/release-notes-next/mandriva-dnf-python.config @@ -0,0 +1,3 @@ +The OpenMandriva chroots provide `python-dnf` and `python-dnf-plugins-core` +packages, not `python3-dnf` and `python3-dnf-plugins-core`. That's why we +[had to fix][issue#1251] the `dnf_install_command` config option appropriately.