Skip to content

Commit

Permalink
transaction_sr: Don't return if there's a mismatch in actions
Browse files Browse the repository at this point in the history
When _ignore_installed == True, then an exception is raised anyway.
When _ignore_installed == False, get the requested package to the system
regardless the action.
  • Loading branch information
Daniel Mach committed Jan 6, 2021
1 parent e648b87 commit dc4bedd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dnf/transaction_sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ def _replay_pkg_action(self, pkg_data):
if action == "Install" and query_na.installed() and not self._base._get_installonly_query(query_na):
self._raise_or_warn(self._ignore_installed,
_('Package "{na}" is already installed for action "{action}".').format(na=na, action=action))
return

sltr = dnf.selector.Selector(self._base.sack).set(pkg=query)
self._base.goal.install(select=sltr, optional=not self._base.conf.strict)
Expand Down

0 comments on commit dc4bedd

Please sign in to comment.