https://bugzilla.novell.com/show_bug.cgi?id=300569#c9
Stefan Schubert changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|schubi@novell.com |
--- Comment #9 from Stefan Schubert 2007-08-16 06:59:59 MST ---
I have not written the parser stuff. But it should be here in YUMSourceImpl.cc:
case YUMPatchAtom::Package:
{
shared_ptr<YUMPatchPackage> package_data
= dynamic_pointer_cast<YUMPatchPackage>(*it);
string atomkey( package_data->name + "-" + package_data->epoch + ":"
+ package_data->ver + "-" + package_data->rel );
// check if atomkey is already known
PkgAtomsMap::iterator pa_pos = pkg_atoms.find( atomkey );
if (pa_pos != pkg_atoms.end())
{
try
{
Arch oldarch, newarch;
if (!(pa_pos->second->arch.empty())) oldarch = Arch(
pa_pos->second->arch );
if (!(package_data->arch.empty())) newarch = Arch(
package_data->arch );
if (newarch.compatibleWith( getZYpp()->architecture() ) )
{ // new one is compatible (if not, we don't
care)
if (!oldarch.compatibleWith( getZYpp()->architecture() )
// old one is not compatible
|| oldarch.compare( newarch ) < 0)
// or compatible but worse
{
pa_pos->second = package_data;
// new one is it !
}
}
}
catch ( const Exception & excpt_r )
{
ZYPP_CAUGHT( excpt_r );
ERR << "Package " << package_data->name << " in patch's atomlist
has bad architecture '" << package_data->arch << "'" << endl;
}
}
else
{
pkg_atoms[atomkey] = package_data;
// first occurence of this atomkey
}
break;
}
There are some other interesting points there. Make a grep with "incompatible"
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.