Ñò C…#Wc @sˆdZddkZddkZddklZddklZddklZ ddk l Z ddk l Z de fd „ƒYZdS( s[ sysconfig checkpoint to generate the SMF profile from values specified in the SCI screens iÿÿÿÿN(tetree(t InstallEngine(tAbstractCheckpoint(t DOCTYPE_STR(tSystemConfigurationt SCCheckpointcBs5eZdZd„Zd„Zd„Zed„ZRS(s9 checkpoint to generate the SMF profile from the DOC cCs5tt|ƒi|ƒt|_tiƒi|_dS(N(tsuperRt__init__tFalsetdry_runRt get_instancetdoc(tselftname((s../checkpoint.pyR-s cCsdS(Ni((R ((s../checkpoint.pytget_progress_estimate3sc Csò|iiidtƒ}|djotdƒ‚n|iƒ}|p|iidƒt |_ dSt |_ t i ddddd ƒ}|i|ƒtiƒ}|d jo d }nt i|d t d |dt dtƒ}t idƒ}|idƒ}|idt i|ƒƒdi|ƒ}|io |GHnµtii|iƒp*|iid|iƒti|iƒntii|idƒ}|iid|ƒt|dƒii ƒ} z| ~ } | i!|ƒWdQXti"|dƒdS(s, method to write the final XML file t class_types:No System Configuration changes made, no profile to write.sNo XML generated.Ntservice_bundlettypetprofileR t sysconfigt646sUS-ASCIIt pretty_printtencodingtxml_declarationtdoctypes Auto-generated by sysconfig s isCreating directory: %sssc_profile.xmlsPath to XML file: %ssw+i(#R t persistenttget_first_childRtNonet RuntimeErrortto_xmltloggertdebugRthas_xmltTrueRtElementtextendtlocaletgetpreferredencodingttostringRtCommenttsplittinserttjoinR tostpathtexiststbasedirtinfotmakedirstopent__exit__t __enter__twritetchmod( R t sc_objecttxmlRRtxml_strtcommenttxml_listtfullpatht_[1]tfh((s../checkpoint.pyt write_profile6s@            &cCs||_|iƒdS(N(R R>(R R ((s../checkpoint.pytexecuteps (t__name__t __module__t__doc__RRR>RR?(((s../checkpoint.pyR)s    :(RBR$R+tlxmlRtsolaris_install.engineRt!solaris_install.engine.checkpointRt Checkpointtsolaris_install.sysconfigRt!solaris_install.sysconfig.sc_specRR(((s../checkpoint.pyts