Skip to content

Commit

Permalink
Use qubes-dom0-update --action=list --upgrades instead of just upgrades
Browse files Browse the repository at this point in the history
The latter is not supported by dnf5 anymore

QubesOS/qubes-issues#9244

(cherry picked from commit 17de6bd)
  • Loading branch information
marmarek committed Dec 13, 2024
1 parent d54ff68 commit 7d4fef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _modules/qubes_dom0_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ def list_upgrades(refresh=True, **kwargs):
# QUBES-DOM0 use qubes-dom0-update
#cmd.extend(["list", "upgrades" if _yum() == "dnf" else "updates"])
#out = _call_yum(cmd, qubes_dom0_update=True, ignore_retcode=True)
cmd.extend(["--console", "--show-output", "--action=list", "upgrades"])
cmd.extend(["--console", "--show-output", "--action=list", "--upgrades"])
if salt.utils.pkg.check_refresh(__opts__, refresh):
# Remove rtag file to keep multiple refreshes from happening in pkg states
salt.utils.pkg.clear_rtag(__opts__)
Expand Down

0 comments on commit 7d4fef0

Please sign in to comment.