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