mò ©ËŽGc@s<dkTdkZd„Zd„Zdefd„ƒYZdS((t*NcCsãg}yÇtidƒiƒ}x«|D]£}|iddƒ|idƒ}g}x2|D]*}t |ƒdjo|i |ƒqWqWWt |ƒdjo0t |dƒdjo|i |dd ƒq%q%WWn‚dGHnX|S(Nsps -eals t iiÿÿÿÿs%Ignoring error executing [ps -eal]...( t processestostpopent readlinestlinestlinetreplacetsplittp1tp2tptlentappend(R RR RR R((th/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/RunningProcess.pyt processList s$*! cCs=ytidƒiƒ}WndGHg}nXg}d}xü|D]ô}t|ƒdjoÛg}d}|d d}xtt|ƒdjo`|d}|d}|t i jo||}qwt|ƒdjo|i|ƒnd}qwWt|ƒdjo3|dd j o!|itii|dƒƒq5qAqAW|S( Nsps -ealfs[ps -ealf] fails to execute.itiÿÿÿÿRiitCMD(RRRRtplisttfirstRR titemstitemtxtxxtstringt whitespaceRtpathtbasename(RRRRRRRR((RtprocessListOlds0  %)tRunningProcesscBsetZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z RS( NtrunningProcesssRunning ProcessescCs ||_dS(N(tpnametselft_RunningProcess__pname(R!R ((Rt__init__6scCs|i|ijS(N(R!R"trp(R!R$((Rtequal8scCs|iS(N(R!R"(R!((Rtstr9scCstƒS(N(tReason(R!tg((Rt compatible<scCstd|id|i ƒS(Ns Process [s] has not been tested.(R'R!R"tacquired(R!((Rt satisfied?scCs–tdƒoRd|idGHx?tƒD]0}||ijodG|GdGHq'dG|GHq'Wn|itƒjo tƒSntd|idƒSdS( NRsChecking for running process [s]...s------> s <---------- GOT ONEs s Process [s] is not running.(tverboR!R"RRR'(R!R((Rtacquire@s   cCstƒS(N(R'(R!((RtretractLscCs |iƒS(N(R!tsatisfy(R!((RtverifyMscCstƒS(N(R'(R!((Rt satisfiableOs( t__name__t __module__ttypettitleR#R%R&R)R+R-R.R0R1(((RR2s       (t EnvironmentRRRR(RRRR((Rt?s