
Arvin Schnell wrote:
Hi,
is it possible to install packages from YCP by using the supplements information?
E.g. xfsprogs.spec contains "Supplements: filesystem(xfs)". I want to do something like this:
Package::InstallAll(["filesystem(xfs)"]);
Unfortunately this does not work. The minor problem is that the rpm check call is not properly escaped: 2009-02-25 14:29:24 <3> muffin(17814) [bash] ShellCommand.cc(shellcommand):78 sh: -c: line 0: syntax error near unexpected token `(' 2009-02-25 14:29:24 <3> muffin(17814) [bash] ShellCommand.cc(shellcommand):78 sh: -c: line 0: `rpm -q --whatprovides filesystem(xfs)' The real problem is that Package::InstallAll() expects list of packages, not supplements. There is Pkg::PkgQueryProvides() call, but it works with "provides" set, "supplements" is something different :-( To support this functionality we would add a new pkg-binding. If you really need it then open a bug report or a FATE entry. -- 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