Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
createrepo
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/createrepo/readMetadata.pyo
mς `THc @ s d k Z d k Z d k Z d k Z d k Z d Z d Z d e f d YZ e d j o% e d d d d h d d < Z n d S( Nc C s t i | IJd S( N( t syst stderrt stuff( R ( ( t% /usr/share/createrepo/readMetadata.pyt errorprint s c C s | S( s Stub function for translationN( t args( R ( ( R t _ s t MetadataIndexc B sS t Z d d Z d Z d Z d Z d Z d Z d Z d Z RS( Nc C s[ | d j o h } n | | _ | | _ h d | <d | <d | <| _ | i d S( Nt baset filelistt other( t optst Nonet selft outputdirt basefilet filelistfilet otherfilet filest scan( R R R R R R ( ( R t __init__! s $c C sς h | _ h | _ h | _ h | _ | i i d o t d GHn xF | i i D]5 } t i i | p t t d | d SqV qV Wt i | i d i } | i | | i | i i d o t d t | i GHn t i | i d i } | i | | i | i i d o t d t | i GHn t i | i d i } | i | | i | i i d o t d t | i GHn h | _ x9 | i i D]( \ } } | i i | g i | qΒWd S( s Read in and index old repo datat verboses Scanning old repo datas Previous repo file missing: %sNR s Indexed %i base nodesR s Indexed %i filelist nodesR s Indexed %i other nodes( R t basenodest filesnodest othernodest pkg_idsR t getR R t valuest filet ost patht existsR t libxml2t parseFilet getRootElementt roott _scanPackageNodest _handleBaset lent _handleFilest _handleOthert pkgrefst iteritemst relpatht pkgidt setdefaultt append( R R, R# R R+ ( ( R R + s8 c C si | i } xY | d j oK | i d j o | i } q n | i d j o | | n | i } q Wd S( Nt elementt package( R# t childrent nodeR t typet nextt namet handler( R R# R6 R2 ( ( R R$ I s c C s | } | i } d } d } d } d } | i i d t } xΝ | d j oΏ | i d j o | i } q? n | i d j o | i } nv | i d j o t | i d } nM | i d j o t | i d } n$ | i d j o | i d } n | i } q? W| d j o t d GHd Sn | d j o t d | GHd Sn | d j o t d | GHd Sn | d j o t d | GHd Sn | oπ t i i | i d | } y t i | } Wn t j o d Sn Xt i | i p d Sn | i | j o: | i i d o t d | | i | f GHn d Sn | i | j o. | i i d o t d | GHn d Sqn | | i | <| | i | <d S( Nt do_statR/ t checksumt timeR t sizeR0 t locationt hrefs Incomplete data for nodes pkgid missing for %ss mtime missing for %ss size missing for %st pkgdirR s# Size (%i -> %i) changed for file %ss Modification time changed for %s(! R2 t topR1 R R, t mtimeR: R+ R R R t TrueR7 R3 R4 R5 t contentt intt propR R R t joint filepatht statt stt OSErrort S_ISREGt st_modet st_sizet st_mtimeR R ( R R2 R, RE R7 RG R? R+ R>