* Michael Matz
But that 'best' architecture needs to be at least compatible with the system. That isn't checked anywhere.
Well, thats bad. libzypp checked when parsing repository metadata and discarded solvables incompatible with the target system. repo_add_solv() could (should?) do this.
My hack checks the wrong thing (but conservatively correct) and I mentioned this. But that's only because I don't know how to retrieve the system Arch. If somebody tells me, I can change the lines to
"candidate.arch().compatibleWidth (systemArch())"
sat-solver shouldn't try to detect the architecture. That's up to the application (which might want to do dry-runs for several architectures). For the glory details on detecting the systems architecture, see defaultArchitecture() of http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/zypp_detail/ZYppImpl.cc Klaus -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org