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/modifyrepo.pyo
mò 4+KGc�����������@���sÄ���d��k��Z��d��k�Z�d��k�Z�d��k�Z�d�k�l�Z�d�f��d�„��ƒ��YZ�e�d�j�oo�e�e�i �ƒ�d�j�p�d�e�i �j�o�d�e�i �d�GHe�i �ƒ��n�e�e�i �d �ƒ�Z�e�i�e�i �d �ƒ�n�d��S(���N(���s���minidomt���RepoMetadatac�����������B���s)���t��Z�d�„��Z�h��d��d�„�Z�d�„��Z�RS(���Nc���������C���sv���t��i�i�|�ƒ�|��_�t��i�i�|��i�d�ƒ�|��_�t��i�i�|��i�ƒ�p�t �d�|��i�ƒ�‚�n�t �i�|��i�ƒ�|��_�d�S(���sB��� Parses the repomd.xml file existing in the given repo directory. s ���repomd.xmls���%s not foundN( ���t���ost���patht���abspatht���repot���selft���repodirt���joint ���repomdxmlt���existst ���Exceptiont���minidomt���parset���doc(���R���R���(����(����t#���/usr/share/createrepo/modifyrepo.pyt���__init__"���s�����c���������C���s|���|��i�i�|�ƒ�}�x,�|�i�ƒ��D]�}�|�i�|�d�|�d�ƒ�q�W|�o#�|��i�i �|�ƒ�}�|�i�|�ƒ�n�|�i�|�ƒ�|�S(���Ni����i���(���R���R ���t ���createElementt���namet���childt���attrst���itemst���itemt���setAttributet���textt���createTextNodet���txtnodet���appendChildt���parent(���R���R���R���R���R���R���R���R���(����(����R���t���_insert_element*���s���� � c��� ��� ���C���s��d�}�|�p�t�d�ƒ�‚�n�t�|�t�i�ƒ�o�|�i�ƒ��}�d�}�n�t�|�t �ƒ�ob�t �i�i�|�ƒ�o;�t �|�d�ƒ�}�|�i�ƒ��}�|�i�ƒ��t �i�i�|�ƒ�}�qÄ�t�d�|�ƒ�‚�n �t�d�ƒ�‚�|�d�7}�|�i�d�ƒ�d�}�t �i�i�|��i�|�ƒ�}�t�i�|�d �ƒ�} �| �i�|�ƒ�| �i�ƒ��d �G|�GHt �|�d�ƒ�}�|�i�ƒ��} �|�i�ƒ��xH�|��i�i�d�ƒ�D]4�} �| �i �d�i!�|�j�o�|��i�i"�i#�| �ƒ�qcqcW|��i�i"�}�|��i%�|�d�d �h��d�|�<ƒ}�|��i%�|�d�d �h��d�d�|�<ƒ|��i%�|�d�d �h��d�d�<d�t'�i(�| �ƒ�i)�ƒ��ƒ|��i%�|�d�d�t �t �i*�|�ƒ�i+�ƒ�ƒ|��i%�|�d�d �h��d�d�<d�t'�i(�|�ƒ�i)�ƒ��ƒd�G|�GHd�Gd�|�GHd�Gt'�i(�| �ƒ�i)�ƒ��GHd�Gt �t �i*�|�ƒ�i+�ƒ�GHd�Gt'�i(�|�ƒ�i)�ƒ��GHt �|��i,�d�ƒ�}�|��i�i.�|�ƒ�|�i�ƒ��d �G|��i,�GHd�S(���s›��� Insert arbitrary metadata into this repository. metadata can be either an xml.dom.minidom.Document object, or a filename. s���metadata cannot be Nones���updateinfo.xmlt���rs���%s not founds���invalid metadata types���.gzt���.i����t���wbs���Wrote:t���datat���typeR���t���locationt���hrefs ���repodata/t���checksumt���shaR���t ���timestamps ���open-checksums��� type =s��� location =s��� checksum =s��� timestamp =s��� open-checksum =t���wN(/���t���Nonet���mdt���metadataR ���t ���isinstanceR���t���Documentt���toxmlt���mdnamet���strR���R���R ���t���filet���oldmdt���readt���closet���basenamet���splitt���mdtypeR���R���R���t���destmdt���gzipt���GzipFilet���newmdt���writet���fR ���t���getElementsByTagNamet���elemt ���attributest���valuet ���firstChildt���removeChildt���rootR���R ���R%���t���newt ���hexdigestt���statt���st_mtimeR���t���outmdt���writexml( ���R���R*���RH���R7���R1���R6���R ���R)���R<���R:���R>���R.���RC���(����(����R���t���add4���s`����� �! (���t���__name__t ���__module__R���R(���R���RJ���(����(����(����R���R���� ���s��� t���__main__i���s���-hs,���Usage: %s <input metadata> <output repodata>i����i���i���( ���R���t���sysR%���R8���t���xml.domR���R����RK���t���lent���argvt���exitt���repomdRJ���(���R���RS���RN���R%���R8���R���R����(����(����R���t���?���s��� V &