File: //proc/3/root/proc/2/task/2/root/usr/lib/python2.4/site-packages/setuptools/command/rotate.pyo
mň
Čk8Hc @ sZ d k Z d k Z d k l Z d k l Z d k l Z d k Td e f d YZ d S( N( s Command( s convert_path( s log( t *t rotatec B sD t Z d Z d Z d d d g Z g Z d Z d Z d
Z RS( s Delete older distributionss2 delete older distributions, keeping N newest filess match=t ms patterns to match (required)s dist-dir=t ds% directory where the distributions ares keep=t ks( number of matching distributions to keepc C s d | _ d | _ d | _ d S( N( t Nonet selft matcht dist_dirt keep( R ( ( t= /usr/lib/python2.4/site-packages/setuptools/command/rotate.pyt initialize_options s c C sß | i d j o t d n | i d j o t d n y t | i | _ Wn t j
o t d n Xt | i t o@ g } | i i
d D] } | t | i
q˘ ~ | _ n | i d d d S( NsQ Must specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')s$ Must specify number of files to keeps --keep must be an integert ,t bdistR ( s dist_dirs dist_dir( R R R t DistutilsOptionErrorR t intt
ValueErrort
isinstancet
basestringt _[1]t splitt pt convert_patht stript set_undefined_options( R R R ( ( R
t finalize_options s @c C s | i d d k l } xő | i D]ę } | i i d | } | t i i | i
| } g } | D] } | t i i | | f qj ~ } | i | i t i d t | | | | i } x? | D]7 \ } } t i d | | i p t i | qÓ qÓ Wq$ Wd S( Nt egg_info( s globR s %d file(s) matching %ss Deleting %s( R t run_commandt globR t patternt distributiont get_namet ost patht joinR t filesR t ft getmtimet sortt reverset logt infot lenR t tt dry_runt unlink( R R# R$ R R R+ R ( ( R
t run* s
3
( s match=R s patterns to match (required)( s dist-dir=R s% directory where the distributions are( s keep=R s( number of matching distributions to keep( t __name__t
__module__t __doc__t descriptiont user_optionst boolean_optionsR R R. ( ( ( R
R s ( t distutilsR t
setuptoolst Commandt distutils.utilR R( t distutils.errorsR ( R R R( R5 R7 R ( ( R
t ? s