Mailinglist Archive: zypp-devel (53 mails)

< Previous Next >
Re: [zypp-devel] ui::Selectable::theObj()
  • From: Jano Kupec <jkupec@xxxxxxx>
  • Date: Fri, 03 Oct 2008 15:58:47 +0200
  • Message-id: <48E62517.4060807@xxxxxxx>
Jano Kupec wrote:
Shouldn't $subject return kernel-default-2.6.27-12.1.x86_64 given these are available in the pool?

$ zypper search -s --match-exact kernel-default
Loading repository data...
Reading installed packages...

S | Name | Type | Version | Arch | Repository
--+----------------+------------+---------------+--------+----------------------------
i | kernel-default | package | 2.6.25.16-0.1 | x86_64 | Updates for 11.0
v | kernel-default | package | 2.6.25.11-0.1 | x86_64 | Updates for 11.0
v | kernel-default | package | 2.6.25.9-0.2 | x86_64 | Updates for 11.0
v | kernel-default | package | 2.6.25.16-0.1 | i586 | Updates for 11.0
v | kernel-default | package | 2.6.25.11-0.1 | i586 | Updates for 11.0
v | kernel-default | package | 2.6.25.9-0.2 | i586 | Updates for 11.0
v | kernel-default | package | 2.6.27-12.1 | x86_64 | openSUSE Factory (standard)
v | kernel-default | package | 2.6.27-12.1 | i586 | openSUSE Factory (standard)
v | kernel-default | package | 2.6.27-7.2 | i586 | iso
| kernel-default | srcpackage | 2.6.25.16-0.1 | noarch | Updates for 11.0
| kernel-default | srcpackage | 2.6.27-7.2 | noarch | iso


It returns 2.6.25.16-0.1 (the installed one) from SelectableImpl::defaultCandidate()

Additional notes: The selectable contains all thepackages from above. And i got it from a PoolQuery/SolvIterMixin:

PoolQuery q;
q.addKind(kind);
q.addAttribute(sat::SolvAttr::name, str);
q.setMatchGlob();
for_(s, q.selectableBegin(), q.selectableEnd())
{...}

j.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References