Mailinglist Archive: zypp-devel (230 mails)

< Previous Next >
Re: [zypp-devel] zypper dup
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Tue, 12 Feb 2008 17:38:28 +0100
  • Message-id: <20080212163828.GB16135@xxxxxxxxxxxxx>
* Michael Matz <matz@xxxxxxx> [Feb 12. 2008 17:17]:

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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >