| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/rpmUtils/ |
Upload File : |
�
�v_c @ s_ d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m
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 j f d � � YZ d d d � Z d d d � � YZ d e f d � � YZ d e f d � � YZ d d d � � YZ d S( i����N( t write32ut FNAME( t URLGrabError( t errorc C s t j | IJd S( N( t syst stderr( t numt msg( ( s5 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyt log s c C s | S( N( ( R ( ( s5 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyt _ s c C s� t | � } d } | j d k r* d } n- | | j � k sN | | j � k rW d } n | r 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 hdrt Nonet namet archR R ( t
headerfileR
R t ht fail( ( s5 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyt checkheader s $ "i c C s� t j d � t j | t j � } y t j | � Wn t j k
rQ } d } n Xd } t j | � t j d � | r� | s� t d t
d � | � � q� d Sn | Sd S( sd take a package, check it out by trying to open it, return 1 if it's good
return 0 if it's nott md5i i t defaulti����s RPM %s fails md5 checkN( t tst sigCheckingt ost opent O_RDONLYt hdrFromFdnot rpmR t closeR R ( t packaget urlgraberrort fdnot et good( ( s5 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyt checkRpmMD5% s
c C s� t j d � t j | t j � } y t j | � } Wnn t j k
r� } t | � d k r` d St | � d k rv d St | � d k r� d St | � d k r� d Sn6 Xt | � \ } } | d k r� t j
| � ~ d
S~ t j
| � d S( s� take a package, check it's sigs, return 0 if they are all fine, return
1 if the gpg key can't be found, 2 if the header is in someway damaged,
3 if the key is not trusted, 4 if the pkg is not gpg or pgp signedR s public key not availaiablei s public key not availables public key not trustedi s error reading package headeri ie i i ( R R R R R R R R t strt
getSigInfoR ( R R R R R t siginfo( ( s5 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyt checkSig; s*
c C ss d } | j | � } | d k rB d } | j d � \ } } } n d } d } d } d } | | | f } | | f S( sE checks if a computerhand back signature information and an error codes� %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|s (none)i t ,ie t MD5R ( t sprintft split( R t stringR% R t sigtypet sigdatet sigidt infotuple( ( s5 /usr/lib/python2.7/site-packages/rpmUtils/oldUtils.pyR$ W s c C sX g } | t j } | d k r"