Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
rpmUtils
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/rpmUtils/oldUtils.pyo
mņ F»Oc @ sG d k Z d k Z d k Z d k Z d k Z d k l Z l Z d k l Z d k l Z d Z e Z d Z d Z d d Z d Z d Z d Z d Z d Z d Z d d g Z d e i f d YZ d d d Z d f d YZ d e f d YZ d e f d YZ d f d YZ d S( N( s write32us FNAME( s URLGrabError( s errorc C s t i | IJd S( N( t syst stderrt msg( t numR ( ( t5 /usr/lib/python2.4/site-packages/rpmUtils/oldUtils.pyt log s c C s | S( N( R ( R ( ( R t _ s c C s t | } d } | i d j o d } n1 | | i j p | | i j o d } n | o# t d t d | | f n d S( s check a header by opening it and comparing the results to the name and arch we believe it to be for. if it fails raise URLGrabError(-1)i i i’’’’s1 Header cannot be opened or does not match %s, %s.N( t Header_Workt headerfilet ht failt hdrt Nonet namet archt URLGrabErrorR ( R R R R R ( ( R t checkheader s & #i c C sÆ t i d t i | t i } y t i | Wn t i j o } d } n Xd } t i | t i d | o, | p t d t d | q« d Sn | Sd S( sc take a package, check it out by trying to open it, return 1 if its good return 0 if it's nott md5i i t defaulti’’’’s RPM %s fails md5 checkN( t tst sigCheckingt ost opent packaget O_RDONLYt fdnot hdrFromFdnot rpmt errort et goodt closet urlgraberrorR R ( R R R R R ( ( R t checkRpmMD5% s c C s t i d t i | t i } y t i | } Wn t i j ou } t | d j o d Sn t | d j o d Sn t | d j o d Sn t | d j o d Sqö n<