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 14:42:39 +0100
  • Message-id: <49A54ACF.4050606@xxxxxxx>
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@xxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
References