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

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