Skip to content

Commit

Permalink
Merge pull request #10 from citynetwork:bugfix/fedora41
Browse files Browse the repository at this point in the history
Fix deprecated flag for dnf5
  • Loading branch information
noonedeadpunk authored Nov 26, 2024
2 parents d9b58c6 + 4a3a53a commit 3a3f2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yum/bin/install-packages
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ MAP_ELEMENT=

# allow override for dnf, as shipped by default with >=F22
YUM=${YUM:-yum}
YUM_FLAGS=${YUM_FLAGS:--y -d}
YUM_FLAGS=${YUM_FLAGS:--y -v}

# save global xtrace state
_xtrace=$(set +o | grep xtrace)
Expand Down Expand Up @@ -136,10 +136,10 @@ if [ -n "$WHITELIST" ]; then
# [1] https://bugzilla.redhat.com/show_bug.cgi?id=965567
set -o xtrace

DNF5=$(which dnf5 2>/dev/null)
DNF5=$(which dnf5 2>/dev/null || true)
if [ ${YUM} == 'dnf' ] && [ -n "$DNF5" ]; then
# dnf5 does not support debug flag
YUM_FLAGS=${YUM_FLAGS//-d}
YUM_FLAGS=${YUM_FLAGS//-v}
fi

${YUM} $YUM_FLAGS $ACTION $EXTRA_ARGS $PKGS
Expand Down

0 comments on commit 3a3f2f9

Please sign in to comment.