Ladislav Slezak wrote:
is it possible to install packages from YCP by using the supplements information? [...] 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 "filesystem(xfs)" capability. 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: namespace:filesystem(xfs)" 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@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org