mň ŞËŽGc@s:dkTdkTdkZdkZdefd„ƒYZdS((t*NtRestoreFromUninstallcBsYtZdZdZdZd„Zd„Zd„Zd„Zd„Z d „Z d „Z RS( NtrestoretRestoresrestore saved filescCsTtii|ƒ|jptd|dƒn||_tiƒ|_ d|_ dS(NsSyntax error [s!] must be a filename, not a path.t( tostpathtbasenametfilenametaborttselft _filenametPackagetSpect_part_dir(R R((te/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/SaveRestore.pyt__init__ s  cCs|iS(N(R R (R ((RtstrscCs|i|ijS(N(R R tx(R R((RtequalscCst| d|i ƒS(Ns has not been restored.(tReasonR tacquired(R ((Rt satisfiedscCs,tƒ}|itiƒjotdƒntt|ii ƒƒƒ |_ t i i t td|i ƒ|_t i i|iƒoĽt i it i i |i|iƒƒoytidd|idƒ}|iƒoKtidd|idƒtidt i i |i|iƒd ƒ}q$q(n|S( NsError in RestoreFromUninstall.tsavesRsAbout to restore [s]. OK?s Restoring [s]...s cp -r -f s .(RtrR RR R R tabsthasht_idRRtjoint pac_anchort pacmanDirRtisdirtexistsR tasktretoktverbotlogt Executiontexecute(R R((Rtacquires !( 8cCstƒ}|itiƒjotdƒntii tii t t dƒƒoŻtii |iƒptid|iƒ}n|iƒontidd|idƒ}|iƒo@tidd|idƒtid |id |iƒ}qýqn|S( NsError in RestoreSave.Rsmkdir RsAbout to save [s]. OK?sSaving [s]...s cp -r -f t (RRR RR R R RRR RRRR!RR'R(R$R"R#R R%R&trr(R R+R((Rtretract&s %  -cCs’tƒ}|idjputidd|idƒ}|iƒoGti dd|idƒt i dt i i|i|iƒƒ}qŽn|S(NRRsAbout to remove saved [s] from the installation. OK?sRemoving saved [s] from the installation...s rm -r -f (RRR RR"R#R R$R%R&R'R(RRR(R R((Rt removeSave3s  0( t__name__t __module__ttypettitletactionRRRRR)R,R-(((RRs      (tBaset EnvironmentR R'R(R'RR ((Rt?s