Mailinglist Archive: zypp-devel (59 mails)

< Previous Next >
Re: [zypp-devel] ui::Selectable::theObj()
  • From: Jan Kupec <jkupec@xxxxxxx>
  • Date: Tue, 18 Nov 2008 15:03:23 +0100
  • Message-id: <4922CB2B.7000202@xxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Andres wrote:
On Tuesday 18 November 2008 13:05:59 Jan Kupec wrote:
Michael Andres wrote:

The method returns the 'Best' or 'most interesting' among all available
objects. One that is, or is likely to be, chosen for installation.
Nothing else.
But that is not true! It returns 'some', not 'the best' in any terms.
'The best' would mean the latest version, the best arch, the highest
priority, etc... But currently it just select 'some' (well, the
installed arch is considered).

No, the set is ordered!

What still puzzles me, though, is why theObj() returns different objects
if i change repo priorities (like in bug #437854):
Of course, as the repo priority influences the what might get selected.
The candidate (and also theObj) may change at any time.
I understand that, but where is the code doing this currently?

zypp::ui::SelectableTraits

struct AVOrder; // functor

typedef std::set<PoolItem,AVOrder> AvailableItemSet;

typedef AvailableItemSet::iterator available_iterator;
typedef AvailableItemSet::const_iterator available_const_iterator;
typedef AvailableItemSet::size_type available_size_type;

Aaaah, that is the piece of info i was looking for :O) Thanx and sorry
for the noise! So zypper _can_ use this after all. But there is still an
issue due to which i originally started this thread. I'll follow up there.

- --
cheers,
jano


Ján Kupec
YaST team
- ---------------------------------------------------------(PGP)---
Key ID: 637EE901
Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901
- -----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkkiyysACgkQgEhGpmN+6QEazwCePXZtMzjXms/Az46XGhi2W3Ru
18QAn0W8AZleU87uTPGRhQeOmteBpav8
=mPri
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >