ó C…#Wc@sˆdZddlZddlZddlmZddlmZddlmZ ddl m Z ddl m 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|ƒj|ƒt|_tjƒj|_dS(N(tsuperRt__init__tFalsetdry_runRt get_instancetdoc(tselftname((s checkpoint.pyR-s cCsdS(Ni((R ((s checkpoint.pytget_progress_estimate3sc CsÔ|jjjdtƒ}|dkr3tdƒ‚n|jƒ}|sb|jjdƒt |_ dSt |_ t j ddddd ƒ}|j|ƒtjƒ}|d kr´d }nt j|d t d |dt dtƒ}t jdƒ}|jdƒ}|jdt j|ƒƒdj|ƒ}|jr2|GHnžtjj|jƒsp|jjd|jƒtj|jƒntjj|jdƒ}|jjd|ƒt|dƒ} | j|ƒWdQXtj |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 tostpathtexiststbasedirtinfotmakedirstopentwritetchmod( R t sc_objecttxmlRRtxml_strtcommenttxml_listtfullpathtfh((s checkpoint.pyt write_profile6s@           cCs||_|jƒdS(N(R R;(R R ((s checkpoint.pytexecuteps (t__name__t __module__t__doc__RRR;RR<(((s checkpoint.pyR)s    :(R?R$R+tlxmlRtsolaris_install.engineRt!solaris_install.engine.checkpointRt Checkpointtsolaris_install.sysconfigRt!solaris_install.sysconfig.sc_specRR(((s checkpoint.pyts