Author: lslezak Date: Mon Apr 14 14:18:38 2008 New Revision: 46573 URL: http://svn.opensuse.org/viewcvs/yast?rev=46573&view=rev Log: - Products.ycp - the target and the sources must be initialized and the solver must be run to obtain the list of installed products (#368104) Modified: trunk/yast2/library/packages/src/Product.ycp trunk/yast2/package/yast2.changes Modified: trunk/yast2/library/packages/src/Product.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/packages/src/Produc... ============================================================================== --- trunk/yast2/library/packages/src/Product.ycp (original) +++ trunk/yast2/library/packages/src/Product.ycp Mon Apr 14 14:18:38 2008 @@ -79,6 +79,13 @@ return []; } + // the target at the sources must be initialized + PackageSystem::EnsureTargetInit(); + PackageSystem::EnsureSourceInit(); + + // installed products are computed by the solver + Pkg::PkgSolve(true); + y2milestone ("Looking for base products"); list<map<string,any> > products = (list<map<string,any> >) Pkg::TargetProducts (); Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=4... ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Mon Apr 14 14:18:38 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Apr 14 14:16:55 CEST 2008 - lslezak@suse.cz + +- Products.ycp - the target and the sources must be initialized + and the solver must be run to obtain the list of installed + products (#368104) + +------------------------------------------------------------------- Mon Apr 14 11:44:17 CEST 2008 - locilka@suse.cz - Enhanced firewall-services translations script to generate a bit -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org