mò İˎGc@s]dkTdkTdkZdefd„ƒYZdefd„ƒYZdefd„ƒYZdS((t*Nt DirectorycBsPtZdZdZdZd„Zd„Zd„Zd„Zd„Z d„Z RS( Ntmkdirt DirectoriescCs+ti|ƒ|_|i|_d|_dS(Ni(tstringtstriptpathtselftpath0tcreated(RR((tc/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/Directory.pyt__init__s cCs|i|ijS(N(RRtd(RR ((R tequalscCs|iS(N(RR(R((R tstrscCsÇtƒ}t|iƒdjo)|iddjot| dƒ}n|tiit|iƒƒot|iƒ|_nJtiit|iƒƒot|iƒ|_ntd|idƒ}|S(Niit?s has not yet been chosen.s Directory [s] does not exist.( tReasontreasontlenRRtostisdirtfullpathR(RR((R t satisfieds *cCs*tƒ}t|iƒdjo.|iddjot|idƒ|_ntiit|iƒƒot|iƒ|_n¨tii t|iƒƒo!tdt|iƒdƒ}nky6t dt|iƒƒt|iƒ|_d|_ Wn1t t fj o|id|idƒnX|S( NiiRt[s] is not a directory.smkdir sFailure attempting to create [s].(RRRRRtcookieDirectoryRRRtexiststexecuteR tIOErrortOSError(RR((R tacquires *! cCsBtƒ}|io+dk}dk}|iƒ}|i|iƒ\}}|i ƒo„t i ƒ}xd|D]\}tidd|iiƒd|idƒ|i|iƒiƒ}|i ƒpPqiqiWt i|ƒn|i ƒotd|iƒn|i ƒotd|iƒ}n|i ƒo d|_q>n|S(Ntpacs Package [s] uninstall induced by [s ] removal.s chmod -R a+w s rm -r -f i(RRRR tHometPackagethomet getLocationRtpstokRtgetcwdtwdtptverbotlogt_specRt LazyPackaget uninstalltchdirR(RR#R&R RR'RR!((R tretract1s*     ,    ( t__name__t __module__ttypettitletactionR R RRRR.(((R R s    tMkDirPersistentcBs#tZdZdZdZd„ZRS(Nsmkdir persistentsPersisent DirectoriescCstƒS(N(R(R((R R.Is(R/R0R1R2R3R.(((R R4DstPersistentDirectorycBstZdZdZd„ZRS(NtmkdirPersistentsPersistent DirectoriescCstƒS(N(R(R((R R.Qs(R/R0R1R2R.(((R R5Ls(t Environmentt ExecutionRRR4R5(RR5RR4((R Rs  ;