[yast-commit] r50357 - in /trunk/packager: package/yast2-packager.changes src/clients/inst_rpmcopy.ycp
Author: ug Date: Mon Aug 25 14:12:48 2008 New Revision: 50357 URL: http://svn.opensuse.org/viewcvs/yast?rev=50357&view=rev Log: post-patterns added for autoyast Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/clients/inst_rpmcopy.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=50357&r1=50356&r2=50357&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Mon Aug 25 14:12:48 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Aug 25 14:11:43 CEST 2008 - ug@suse.de + +- post_patterns added for autoyast + +------------------------------------------------------------------- Thu Aug 21 15:13:25 CEST 2008 - lslezak@suse.cz - repositories.ycp: update Autorefresh flag in the table when Modified: trunk/packager/src/clients/inst_rpmcopy.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/inst_rpmcopy.ycp?rev=50357&r1=50356&r2=50357&view=diff ============================================================================== --- trunk/packager/src/clients/inst_rpmcopy.ycp (original) +++ trunk/packager/src/clients/inst_rpmcopy.ycp Mon Aug 25 14:12:48 2008 @@ -660,7 +660,31 @@ }); } - Pkg::PkgSolve (false); + list<string> failed = []; + list<string> patterns = AutoinstData::post_patterns; + /* set SoftLock to avoid the installation of recommended patterns (#159466) */ + foreach( map<string,any> p, Pkg::ResolvableProperties ("", `pattern, ""), ``{ + Pkg::ResolvableSetSoftLock( p["name"]:"", `pattern ); + }); + foreach(string p, toset(patterns), + ``{ + if (! Pkg::ResolvableInstall( p, `pattern ) ) + { + failed = add(failed, p); + } + }); + + if (size(failed) > 0 ) + { + y2error("Error while setting pattern: %1", mergestring(failed, ",")); + Report::Warning(sformat(_("Could not set patterns: %1."), mergestring(failed, ","))); + } + // + // Solve dependencies + // + if( !Pkg::PkgSolve(false) ) { + Report::Error( _("The package resolver run failed. Please check your software section in the autoyast profile.") ); + } } symbol InstallPackagesFromMedia (integer current_cd_no, integer maxnumbercds) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
ug@svn.opensuse.org