Doing a 'yum localinstall /path/to/somepkg.i386.rpm' will fail if you
already have the x86_64 version installed as the local install cli bits
don't take into account multiarch.
This makes localinstall mirror install a bit more closely.
If people agree this is the right behavior, then I'll commit this for
3.0.x and then try to make the code a little bit more common for HEAD
Jeremy
Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.241.2.8
diff -u -u -r1.241.2.8 cli.py
--- cli.py 7 Dec 2006 23:25:32 -0000 1.241.2.8
+++ cli.py 3 Jan 2007 18:36:55 -0000
@@ -775,8 +775,17 @@
else:
installpkgs.append(po)
continue
+
+ comparable = []
+ for instpo in installedByKey:
+ if rpmUtils.arch.isMultiLibArch(instpo.arch) == rpmUtils.arch.isMultiLibArch(pkg.arch):
+ comparable.append(instpo)
+ else:
+ self.verbose_logger.log(yum.logginglevels.DEBUG_3,
+ 'Discarding non-comparable pkg %s.%s', instpo.name, instpo.arch)
+ continue
- for installed_pkg in installedByKey:
+ for installed_pkg in comparable:
if po.EVR > installed_pkg.EVR: # we're newer - this is an update, pass to them
if installed_pkg.name in self.conf.exactarchlist:
if po.arch == installed_pkg.arch:
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel