Skip to content

Commit

Permalink
Support dnf5 for qubes-download-dom0-update.sh
Browse files Browse the repository at this point in the history
dnf5 does not print "--downloadonly" help with -h by default

For QubesOS/qubes-issues#9244
  • Loading branch information
alimirjamali committed Aug 22, 2024
1 parent 5b860df commit 5f455ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package-managers/qubes-download-dom0-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fi
YUM_COMMAND=(fakeroot "${YUM[@]}" "$YUM_ACTION" --downloadonly)
# check for --downloadonly option - if not supported (Debian), fallback to
# yumdownloader
if ! "${YUM[@]}" --help | grep -q downloadonly; then
if ! "${YUM[@]}" upgrade --help | grep -q downloadonly; then
if dpkg --compare-versions \
"$(dpkg-query --show --showformat='${version}' rpm)" gt 4.14; then
SIGNATURE_REGEX="^[A-Za-z0-9._+-/]{1,128}\.rpm: digests signatures OK$"
Expand Down

0 comments on commit 5f455ca

Please sign in to comment.