Test: dnf5 handles updating itself differently than dnf4

If there are no updates then dnf update dnf will fail with a return
code of 1.

https://github.com/rpm-software-management/dnf5/issues/1862

Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Rob Crittenden authored and Florence Blanc-Renaud committed 2025-05-06 13:48:35 +02:00
1 parent d271fc1938
commit b7c17c70a1
1 file changed
-1
@@ -4,7 +4,6 @@ ENV container=docker LANG=en_US.utf8 LANGUAGE=en_US.utf8 LC_ALL=en_US.utf8
ADD dist /root
RUN echo 'deltarpm = false' >> /etc/dnf/dnf.conf \
&& dnf update -y dnf \
&& dnf update -y python3 \
&& (sed -i 's/%_install_langs \(.*\)/\0:fr/g' /etc/rpm/macros.image-language-conf ||:) \
&& dnf install -y systemd \