Ñò rê$Lc@sôdZdZddkZddkZddkZddkZddkZddkZddk Zddk Zddk Zd„Z d„Z d„Zeiie eƒZeiideiidd ƒd eiid d ƒZd „Zd„ZdS(sTSCons.Tool.rpm Tool-specific initialization for rpm. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. The rpm tool calls the rpmbuild command. The first and only argument should a tar.gz consisting of the source file and a specfile. s;src/engine/SCons/Tool/rpm.py 5023 2010/06/14 22:05:46 sconsiÿÿÿÿNcCsC|}tii|ƒo|d}nd|d|d|ifS(Nis%s %s %stRPMtRPMFLAGS(tSConstUtiltis_Listtabspath(tsourcetenvttar_file_with_included_specfile((s1install/lib/scons-2.0.0.final.0/SCons/Tool/rpm.pytget_cmd1s c CsÅtiitii|diƒdƒ}tii|ƒoti|ƒnx6ddddgD]"}titii||ƒƒq_W|i dd|ƒt i t ||ƒd t i d t id tƒ}|iiƒ}|iƒ}|o3tiid |dd |dt|dƒƒ‚n—tidƒi|ƒ}x{t||ƒD]j\}} tii|ƒ} tii| iƒƒ} | | jptd| | f‚ti|| iƒqFWti|ƒ|S(NitrpmtemptRPMStSRPMStSPECStBUILDRs--define '_topdir %s'tstdouttstderrtshelltnodeterrstrtfilenames Wrote: (.*)sgot %s but expected %s(tostpathtjointdirnameRtexiststshutiltrmtreetmakedirstPrependt subprocesstPopenR tPIPEtSTDOUTtTrueRtreadtwaitRtErrorst BuildErrortstrtretcompiletfindalltziptbasenametget_pathtAssertionErrortcopy( ttargetRRttmpdirtdthandletoutputtstatust output_filestinputt rpm_outputtexpected((s1install/lib/scons-2.0.0.final.0/SCons/Tool/rpm.pyt build_rpm8s4(      ! cCs0y |dSWntj ot||ƒSXdS(Nt RPMCOMSTR(tKeyErrorR (R0RR((s1install/lib/scons-2.0.0.final.0/SCons/Tool/rpm.pyt string_rpmbs tactions$RPMCOMs $RPMCOMSTRtsource_scannertsuffixs $RPMSUFFIXcCsŒy|dd}Wn'tj ot}||dd s&           * !