Author: jsuchome Date: Tue Jun 14 08:41:00 2011 New Revision: 64327 URL: http://svn.opensuse.org/viewcvs/yast?rev=64327&view=rev Log: copy all product profiles to the installed system Modified: trunk/installation/src/inst_finish/copy_files_finish.ycp Modified: trunk/installation/src/inst_finish/copy_files_finish.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/inst_finish/copy_files_finish.ycp?rev=64327&r1=64326&r2=64327&view=diff ============================================================================== --- trunk/installation/src/inst_finish/copy_files_finish.ycp (original) +++ trunk/installation/src/inst_finish/copy_files_finish.ycp Tue Jun 14 08:41:00 2011 @@ -185,6 +185,23 @@ ); } + // copy all product profiles to the installed system (fate#310730) + if (ProductProfile::all_profiles != []) + { + string target_dir = sformat ("%1/etc/productprofiles.d", Installation::destdir); + if (!FileUtilis::Exists (target_dir)) + { + SCR::Execute (.target.mkdir, target_dir); + } + foreach (string profile, ProductProfile::all_profiles, { + y2milestone ("Copying '%1' to %2", profile, target_dir); + WFM::Execute (.local.bash, + sformat ("/bin/cp -a '%1' '%2/'", profile, target_dir); + ); + }); + } + + // List of files used as additional workflow definitions CopyAllWorkflowFiles(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org