Blame SOURCES/BZ-1689025-installonly-do-not-reinstall-local.patch

5e9bef
diff --git a/yum/__init__.py b/yum/__init__.py
5e9bef
index 56f8c8c4..ebec4e92 100644
5e9bef
--- a/yum/__init__.py
5e9bef
+++ b/yum/__init__.py
5e9bef
@@ -5605,11 +5605,11 @@ much more problems).
5e9bef
 
5e9bef
         for installed_pkg in installedByKey:
5e9bef
             if po.verGT(installed_pkg): # we're newer - this is an update, pass to them
5e9bef
-                if installed_pkg.name in self.conf.exactarchlist:
5e9bef
-                    if po.arch == installed_pkg.arch:
5e9bef
-                        updatepkgs.append((po, installed_pkg))
5e9bef
-                    else:
5e9bef
-                        donothingpkgs.append(po)
5e9bef
+                if (installed_pkg.name in self.conf.exactarchlist
5e9bef
+                        and po.arch != installed_pkg.arch):
5e9bef
+                    donothingpkgs.append(po)
5e9bef
+                elif self.allowedMultipleInstalls(po):
5e9bef
+                    installpkgs.append(po)
5e9bef
                 else:
5e9bef
                     updatepkgs.append((po, installed_pkg))
5e9bef
             elif po.verEQ(installed_pkg):