Ñò ‚Ic@svddkZddkZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Z d „Z d „Z dS( iÿÿÿÿNcCs)tii|dƒ}tii|ƒp g}nUt|ƒ}g}|iƒD]$}|iƒo||iƒqOqO~}|iƒ||jodS|i|ƒtiitii |ƒƒpti tii |ƒƒnt|dƒ}x(|D] }|i |ƒ|i dƒq÷W|iƒdS(sa Add the plugin to the given distribution (or spec), in .egg-info/paster_plugins.txt spaster_plugins.txtNtws ( tostpathtjointexiststopent readlineststriptclosetappendtdirnametmakedirstwrite(t egg_info_dirt plugin_nametfntlinestft_[1]tltline((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pyt add_plugins"  >    c Cs6tii|dƒ}tii|ƒptd|ƒ‚nt|ƒ}g}|iƒD]$}|iƒo||iƒqYqY~}|iƒxE|D]$}|i ƒ|i ƒjoPq—q—Wtd|||fƒ‚|i |ƒdG|GHt|dƒ}x(|D] }|i |ƒ|i dƒqW|iƒdS(sž Remove the plugin to the given distribution (or spec), in .egg-info/paster_plugins.txt. Raises ValueError if the plugin is not in the file. spaster_plugins.txts1Cannot remove plugin from %s; file does not exists)Plugin %s not found in file %s (from: %s)twritingRs N( RRRRt ValueErrorRRRRtlowertremoveR (R RRRRRRR((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pyt remove_plugins. >     cCs“xŒyti|ƒ}Wntj odSXx2|D]*}|idƒotii||ƒSq4Wtii|ƒ}||jodS|}qdS(Ns .egg-info(RtlistdirtOSErrortNonetendswithRRR (tdirt filenamesRtparent((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pytfind_egg_info_dir<s cCs'g}x|o |iƒ}yti|ƒWnttij oe}d}t|ƒ|jo'|t|ƒdd|ff|_n|dd|ff|_‚nX|i|ƒt|ƒ}|idƒoH|i dƒ}x6t |ƒD]$}||jo|i|ƒqéqéWq q Wt t|ƒS(Ns8%sNot Found%s: %s (did you run python setup.py develop?)s: s fortspaster_plugins.txt( tpopt pkg_resourcestrequiretDistributionNotFoundtstrtargsR t get_distrot has_metadatat get_metadatat parse_linestmap(t plugin_listtfoundtplugintetmsgtdisttdataR((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pytresolve_pluginsLs* '    cCs ti|ƒS(N(R%tget_distribution(tspec((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pyR*bscCs7h}x*|D]"}|iti|ddƒƒq W|S(Ntgroupspaste.paster_command(tupdateR%t get_entry_map(tpluginstcommandsR1((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pytload_commands_from_pluginses  cCsVg}xI|iƒD];}|iƒ}|o"|idƒ o|i|ƒqqW|S(Nt#(t splitlinesRt startswithR (R5tresultR((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pyR-ls  cCs1h}x$tidƒD]}|||iR-RFRJR (((s:/usr/lib/python2.6/site-packages/paste/script/pluginlib.pyts