diff options
| author | Jan Pazdziora <jpazdziora@redhat.com> | 2024-05-17 10:20:29 +0200 |
|---|---|---|
| committer | Jan Pazdziora <jpazdziora@redhat.com> | 2024-05-17 10:20:29 +0200 |
| commit | 22ce6fea99bee91af313d4ffaec9e27cd7112640 (patch) | |
| tree | fc745140f40389fc0a8cc9e2dcc5e0c853be8c5c /tests | |
| parent | e86bb2eb771e12b8b28e0530764a8b88019b68e4 (diff) | |
| download | mod_authnz_pam-22ce6fea99bee91af313d4ffaec9e27cd7112640.tar.gz mod_authnz_pam-22ce6fea99bee91af313d4ffaec9e27cd7112640.tar.xz mod_authnz_pam-22ce6fea99bee91af313d4ffaec9e27cd7112640.zip | |
Add support for dnf5 which is now in Fedora rawhide.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/build.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/build.sh b/tests/build.sh index fa3d28d..aa4f3da 100755 --- a/tests/build.sh +++ b/tests/build.sh @@ -3,13 +3,20 @@ set -e set -x -DNF=yum -BUILDDEP_PROVIDER=yum-utils -BUILDDEP=yum-builddep -if type dnf 2> /dev/null ; then +if type dnf5 2> /dev/null ; then + DNF=dnf + BUILDDEP_PROVIDER='dnf5-command(builddep)' + BUILDDEP='dnf builddep' +elif type dnf 2> /dev/null ; then DNF=dnf BUILDDEP_PROVIDER='dnf-command(builddep)' BUILDDEP='dnf builddep' +elif type yum 2> /dev/null ; then + DNF=yum + BUILDDEP_PROVIDER=yum-utils + BUILDDEP=yum-builddep +else + exit 1 fi $DNF install -y rpm-build "$BUILDDEP_PROVIDER" |
