Skip to content

Commit

Permalink
vmupdate/dnf: use --setopt=obsoletes=1 instead of --obsoletes
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Oct 3, 2024
1 parent d3ea822 commit a5eb27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmupdate/agent/source/dnf/dnf_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_action(self, remove_obsolete) -> List[str]:
Disable or enforce obsolete flag in dnf/yum.
"""
if remove_obsolete:
return ["-y", "--obsoletes", "upgrade"]
return ["-y", "--setopt=obsoletes=1", "upgrade"]
return ["-y", "--setopt=obsoletes=0",
"upgrade" if self.package_manager == "dnf" else "update"]

Expand Down

0 comments on commit a5eb27d

Please sign in to comment.