mς P΄ήIc@sLdkTdkTdkTdkZdkZd„Zdd„Zdd„ZdS((t*NcCstƒ\}}|iƒpt|iƒn|tƒjo|SnΌtdƒod|d|Sn›d|jo!d|jod|d|Snmd|jo!d|jod|d|Sn?d|jo!d|jod|d|Snd |d |SdS( Ntsudos sudo -c "s" t"t'ssu -c "ssu -c 's' s su -c """s""" (t currentUsertreasontusertoktabortt getusernametcommandtswitch(R RR((tc/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/Execution.pytsustr s  tnoclearcCst||ƒ\}}|S(N(t executeBaseR tmodeRtoutput(R RRR((R texecutesc Csmtƒ}d}y tƒ\}}|iƒoι|djo"ttt i i |ƒƒƒ}ntt|ƒƒ}tdƒo'd|d|dt iƒdGHntdd|d|dt iƒd ƒoη|d jp:td dt i i |ƒd|dt iƒd ƒoˆtidd|d|dt iƒdƒ|djp td ƒotd ƒ ottidƒo'|idƒdjotiiƒnt i|ƒ}|djod|d}nd}tdƒoSd|dGHt iidƒodt idGHndGHdG|GHd|dGHntidd|d|dt iƒdƒn°ttidƒo'|idƒdjotiiƒnti|ƒ\}}tdƒoSd|dGHt iidƒodt idGHndGHdG|GHd|dGHntidd|d|dtƒdƒ|djo|i|ƒn|djo)tdƒo |GHnt i it i i t!t"dd ƒƒp]tid!d"ƒy?t#t i i t!t"dd ƒd#ƒ}|i%d$ƒ|i&ƒWqqXnynt#t i i t!t"dd ƒd%ƒ}td!ƒo d&GHn|i%d'|d(ƒ|i%|d(ƒ|i&ƒWqœt't(fj oqœXq΄qΜtd)|d*ƒ}ntd)|dƒ}yt iƒ}Wqt't(fj o"|i*td|d+ƒƒqXnWn.t't(fj o|id|d,ƒnXtd-ƒo tƒ}n||fS(.NRt compatibilitys shell-outsAbout to execute [s ] as user [s] at [s].s shell-alls]. OK?troots root-shells os.systemsos.popentclearRisShell command [s] returns with an error code.ttshells os.system(t)tPATHsPATH=sPATH undefinedsstatus=soutput=[t]sFinished executing [scommands.getstatusoutput(tlogss shellout.logtiosCreating shellout.log...tws- Shell output log tasWriting to shellout.log...sshell command> s s,Installer has denied permission to execute [s ] as root.s$] has removed the current directory.s] returns with an error.tignoreShellError(+tReasonRRRt currentuserRRR taliastostpatht expandvarsR tcomtverbotgetcwdtasktlogtdebugthasattrtsyststdouttcountRtsystemtstatustenvironthas_keytcommandstgetstatusoutputtcwddtexiststjoint pac_anchort pacmanDirtopentftwritetclosetIOErrortOSErrortcwdirtappend( R RR!R1RARR<R&R((R RsŽ  " '.G.()    2)   +   ($ $  ( (tBasetCUtAliasR-R4R RR(R-R4R RR((R t?s