Mailinglist Archive: yast-devel (41 mails)

< Previous Next >
Re: [yast-devel] Install packages by supplements from YCP?
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Wed, 25 Feb 2009 16:16:00 +0100
  • Message-id: <49A560B0.50000@xxxxxxx>
Ladislav Slezak wrote:
is it possible to install packages from YCP by using the supplements
There is Pkg::PkgQueryProvides() call, but it works with "provides" set,
"supplements" is something different :-(

I had another idea, I thought that Pkg::ResolvableDependencies("", `package, "")
could be used to manually search for the package which supplements

This also doesn't work - Pkg::ResolvableDependencies() tries to resolve the
dependency - the result contains package names instead of required files
(e.g. "prequires: /sbin/ldconfig" is converted to $["dep_kind":"prerequires",
"name":"glibc", "res_kind":"package"])

This is nice, but it's completely wrong for "supplements:
capability, it cannot be resolved to a package, the result map contains empty
strings. That's a bug in Pkg::ResolvableDependencies() function.


Best Regards

Ladislav Slez√°k
Yast Developer
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups