diff --git a/yum/__init__.py b/yum/__init__.py index 1acadf1..fdd9f73 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -2159,6 +2159,12 @@ class YumBase(depsolve.Depsolve): self.verbose_logger.warning(_('Package %s already installed and latest version'), po) continue + if self.rpmdb.contains(name=po.name, arch=po.arch) and not self.allowedMultipleInstalls(po): + self.verbose_logger.warning(_('Package matching %s already installed. Checking for update.'), po) + txmbrs = self.update(po=po) + tx_return.extend(txmbrs) + continue + # make sure we're not installing a package which is obsoleted by something # else in the repo