[zypp-commit] r5720 - /trunk/libzypp/zypp/solver/detail/QueueItemRequire.cc
Author: schubi2 Date: Mon Jun 11 17:05:48 2007 New Revision: 5720 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5720&view=rev Log: Dont check for architecture changes in atoms (#266178) Modified: trunk/libzypp/zypp/solver/detail/QueueItemRequire.cc Modified: trunk/libzypp/zypp/solver/detail/QueueItemRequire.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/solver/detail/QueueItemRequire.cc?rev=5720&r1=5719&r2=5720&view=diff ============================================================================== --- trunk/libzypp/zypp/solver/detail/QueueItemRequire.cc (original) +++ trunk/libzypp/zypp/solver/detail/QueueItemRequire.cc Mon Jun 11 17:05:48 2007 @@ -187,7 +187,20 @@ } if ( upgrades - && upgrades.resolvable()->arch() != provider->arch()) { + && upgrades.resolvable()->arch() != provider->arch() + && provider->kind() != ResTraits<Atom>::kind ) // if patch provides arch upgrade, allow it (#266178) + // (because of #168840 and #170098, the patch parser grabs the 'best' atom + // and does not have knowledge about already installed atom with the same name. + // The problem #266178 shows is a previously installed patch (noarch) and atom (ppc) + // conflict with a later patch which offers an arch upgrade (ppc -> ppc64) + // This has no effect on the patch, since the patch is noarch. But is has effect + // on the atom, since it is installed as ppc and the upgrade is ppc64. + // Here, we look at arch changes only if they don't affect an atom. So atoms are + // allowed for arch upgrades. + // However, this only applies to atoms, not to packages. The package will stay + // at its architecture. Not doing arch upgrades was one of the requirements for Code10.) + { + MIL << "provider " << provider << " has OTHER arch '" << provider->arch() << "' than the updated item " << upgrades << endl; PoolItemList ignore = _context->getIgnoreArchitectureItem(); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
schubi2@svn.opensuse.org