Don't allow package downgrades on dnf install checks.

Since the state is shared as we are using the system instead of
some fake dnf root, installing it will result in downgrading the
installed version used for tests.
This commit is contained in:
Jarek Prokop 2024-07-10 17:56:19 +02:00
commit 9e5e6bf5f0
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ PACKAGE=${PACKAGE:-}
present=$(rpm -qa $PACKAGE)
# We assume dnf install privileges
dnf install -y rubygem-aruba
dnf install -y --no-allow-downgrade rubygem-aruba
after_install=$(rpm -qa $PACKAGE)

View file

@ -11,7 +11,7 @@ PACKAGE=${PACKAGE:-}
present=$(rpm -qa $PACKAGE)
# We assume dnf install privileges
dnf install -y rubygem-cucumber
dnf install -y --no-allow-downgrade rubygem-cucumber
after_install=$(rpm -qa $PACKAGE)