Skip to content

Commit

Permalink
refactor: installLocal()
Browse files Browse the repository at this point in the history
Preparation for the next commit.
  • Loading branch information
dmnks committed Feb 12, 2020
1 parent b6ff909 commit 17dc522
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions yum/__init__.py
Expand Up @@ -5604,11 +5604,9 @@ def installLocal(self, pkg, po=None, updateonly=False):

for installed_pkg in installedByKey:
if po.verGT(installed_pkg): # we're newer - this is an update, pass to them
if installed_pkg.name in self.conf.exactarchlist:
if po.arch == installed_pkg.arch:
updatepkgs.append((po, installed_pkg))
else:
donothingpkgs.append(po)
if (installed_pkg.name in self.conf.exactarchlist
and po.arch != installed_pkg.arch):
donothingpkgs.append(po)
else:
updatepkgs.append((po, installed_pkg))
elif po.verEQ(installed_pkg):
Expand Down

0 comments on commit 17dc522

Please sign in to comment.