[yast-devel] Installing Patterns
Hi, I have been trying to install patterns using Pkg::ResolvableInstall( patternName, `pattern ); Is this supposed to work? It seems to always fail here, and I can't see why. I also found this in AutoinstClone.ycp: /* FIXME: if this would work, it would be the better solution foreach(string p, patterns, ``{ Pkg::ResolvableInstall( p, `pattern ); }); Pkg::PkgSolve(false); */ Which wasn't encouraging. Adrian has requested Pattern installation should work for the Metapackage handler, and it would if this ReolvableInstall would work. _ Benjamin Weber -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Hi Benji, Benji Weber wrote:
I have been trying to install patterns using Pkg::ResolvableInstall( patternName, `pattern );
Is this supposed to work? It seems to always fail here, and I can't see why.
It should work, I use it in the product creator and I haven't had any problem with it. Could you write more details about your problem (code fragment, error message...)? Did you use correct name of the pattern? You can get list of all available patterns using Pkg::ResolvableProperties("", `pattern, ""). Is your pattern listed in the output?
I also found this in AutoinstClone.ycp:
/* FIXME: if this would work, it would be the better solution foreach(string p, patterns, ``{ Pkg::ResolvableInstall( p, `pattern ); }); Pkg::PkgSolve(false); */
Which wasn't encouraging.
So look at the product-creator. You need to run the solver after selecting the patterns (to select the packages which belong to the pattern). And that's all... Ladislav -- 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
participants (2)
-
Benji Weber
-
Ladislav Slezak