Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
rhsm
/
rct
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/rhsm/rct/manifest_commands.pyc
mò x^Sc�����������@���só���d��k��l�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�k �l�Z�d�k�l�Z�d�k �l�Z�e�i�Z�d�„��Z�d �e�f�d �„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�d �e�f�d�„��ƒ��YZ�d�e�f�d�„��ƒ��YZ�d�S(���(���s���StringION(���s���ZipFiles ���BadZipfile(���s���certificate(���s ���RCTCliCommand(���s���xstr(���s���InvalidCLIOptionError(���s���ourjsonc���������C���sC���|��}�x6�|�i�d�ƒ�D]%�}�|�|�j�o�|�|�}�q�d�Sq�W|�S(���Nt���.t����(���t ���json_dictt���currentt���patht���splitt���item(���R���R���R���R���(����(����t(���/usr/share/rhsm/rct/manifest_commands.pyt ���get_value!���s����� t ���ZipExtractAllc�����������B���sb���t��Z�d��Z�e�Z�d�„��Z�d�„��Z�e�d�„�Z�d�„��Z �d�„��Z �d�„��Z�d�„��Z�e�d�„�Z �RS( ���s€��extend ZipFile with a safer extractall Zipfile() does not support extractall on python2.4, and the 2.6 versions are known to be unsafe in how they extract files. 2.6 version does not validate that files are within the archive root, or check that files are created safely. Contains helper methods for manipulating and reading the zipfile more easily in memoryc���������O���sI���y�t��i�|��|�|�Ž�Wn+�t�j �o�t�d�ƒ�GHt�i�d�ƒ�n�Xd�S(���s(��� Validates the zip file s���Manifest zip is invalid.i���N( ���t���ZipFilet���__init__t���selft���argst���kwargst ���BadZipfilet���_t���syst���exit(���R���R ���R���(����(����R���R���9���s�����c���������C���sE���|��i�d��j�o.�t�|��i�t�i�ƒ�ƒ�}�t�|�d�ƒ�|��_�n�|��i�S(���Nt���r( ���R���t ���inner_zipt���Nonet���StringIOt���readt���RCTManifestCommandt ���INNER_FILEt���outputR ���(���R���R���(����(����R���t���_get_inner_zipC���s����c���������C���s¢���y/�t��|��i�|�ƒ�ƒ�}�|�i�ƒ��}�|�i�ƒ��Wnl�t�j �o`�y-�|�o �t�‚�n�|��i �ƒ��i�|�t�ƒ�}�Wqž�t�j �o�t �t�d�ƒ�|�ƒ�‚�qž�Xn�X|�S(���Ns%���Unable to find file "%s" in manifest.(���R���R���R���t ���file_pathR���t���getvaluet���resultt���closet���KeyErrort���is_innerR���t ���_read_filet���Truet ���ExceptionR���(���R���R���R!���R���R���(����(����R���R"���I���s���� c���������C���s…���g��}�|��i�ƒ��}�xl�|�i�ƒ��D]^�}�t�i�i�|�ƒ�\�}�}�|�t�i�i�d�d�ƒ�j�o$�t�|�ƒ�d�j�o�|�i �|�ƒ�q�q�W|�S(���Nt���exportt���entitlementsi����(���t���resultsR���R���t���in_zipt���namelistt���filenamet���osR���R���t ���read_patht ���read_filet���joint���lent���append(���R���R(���R'���R*���R-���R,���(����(����R���t���_get_entitlementsW���s���� �/c���������C���s-���t��i�t��i�|�t��i�t��i�Bt��i�Bƒ�d�ƒ�S(���Nt���w(���R+���t���fdopent���openR���t���O_RDWRt���O_CREATt���O_EXCL(���R���R���(����(����R���t ���_open_excl`���s����c���������C���s3���|��i�|�ƒ�}�|�i�|��i�|�ƒ�ƒ�|�i�ƒ��d��S(���N(���R���R8���t���output_patht���outfilet���writeR���t���archive_pathR���(���R���R9���R<���R:���(����(����R���t���_write_filec���s����c���������C���sª���t��i�i�|�ƒ�}�t��i�i�|�ƒ�}�|�i�|�ƒ�p�t�t �d�ƒ�ƒ�‚�n�t��i�i �|�ƒ�}�|�|�j�o�|��i �|�|�ƒ�n*�t��i�i�|�ƒ�o�t�t �d�ƒ�ƒ�‚�n�d��S(���Ns@���Manifest zip attempted to extract outside of the base directory.s:���Unable to trace symbolic link. Possibly circular linkage.(���R+���R���t���abspatht���baset ���base_patht���new_filet���new_patht ���startswithR$���R���t���realpatht ���real_new_pathR���t ���_is_securet���islink(���R���R?���RA���RB���R@���RE���(����(����R���RF���h���s���� c���������C���sì���|��i�|�|�ƒ�xÕ�|��i�ƒ��D]Ç�}�t�i�i�|�ƒ�\�}�}�t�i�i �|�|�ƒ�}�|��i�|�|�ƒ�t�i�i�|�ƒ�p�t�i�|�ƒ�n�t�i�i �|�|�ƒ�}�|��i�|�|�ƒ�t�i�i�|�ƒ�o�|�o�t�i�|�ƒ�n�|��i�|�|�ƒ�q�Wd��S(���N(���R���RF���t���locationR)���t ���path_nameR+���R���R���t ���directoryR*���R.���t���existst���makedirst���new_locationt ���overwritet���removeR=���(���R���RH���RN���RI���R*���RM���RJ���(����(����R���t ���extractallt���s���� �(���t���__name__t ���__module__t���__doc__R���R���R���R���t���FalseR"���R1���R8���R=���RF���RP���(����(����(����R���R ���,���s��� � R���c�����������B���sA���t��Z�d�Z�d�d��d��e�d�„�Z�d�„��Z�d�„��Z�e�d�„�Z�RS(���Ns���consumer_export.zipt���clic������ ���C���s)���t��i�|��d�|�d�|�d�|�d�|�ƒd��S(���Nt���namet���aliasest ���shortdesct���primary(���t ���RCTCliCommandR���R���RV���RW���RX���RY���(���R���RV���RW���RX���RY���(����(����R���R���‡���s����c���������C���s���t��d�ƒ�|��i�S(���Ns!���%%prog %s [OPTIONS] MANIFEST_FILE(���R���R���RV���(���R���(����(����R���t ���_get_usage‹���s����c���������C���sV���|��i�ƒ��}�|�p�t�t�d�ƒ�ƒ�‚�n�t�i�i�|�ƒ�p�t�t�d�ƒ�ƒ�‚�n�d��S(���Ns!���You must specify a manifest file.s+���The specified manifest file does not exist.(���R���t���_get_file_from_argst ���manifest_filet���InvalidCLIOptionErrorR���R+���R���t���isfile(���R���R]���(����(����R���t���_validate_optionsŽ���s ����c���������C���s���t��|��i�ƒ��d�ƒ�}�|�i�|�|�ƒ�|�o�t�i�i �|�|��i �ƒ�}�n �|��i �}�t��|�d�ƒ�}�|�i�|�|�ƒ�t�i�|�ƒ�d��S(���NR���( ���R ���R���R\���t���archiveRP���RH���RN���R+���R���R.���R���t ���inner_fileRO���(���R���RH���RN���Rb���Ra���(����(����R���t���_extract_manifest–���s���� ( ���RQ���RR���R���R���RT���R���R[���R`���Rc���(����(����(����R���R���ƒ���s ��� t���CatManifestCommandc�����������B���sM���t��Z�d�„��Z�d�e�d�„�Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z�d�„��Z �RS( ���Nc������ ���C���s2���t��i�|��d�d�d�d�g�d�t�d�ƒ�d�t�ƒd��S(���NRV���s���cat-manifestRW���t���cmRX���s���Print manifest informationRY���(���R���R���R���R���R#���(���R���(����(����R���R���ª���s����i���c���������C���s°���d�}�x%�t�d�|�d�ƒ�D]�}�|�d�}�q�W|�|�GH|�d�}�xX�|�D]P�}�t�|�ƒ�d�j�o$�d�|�|�d�t�|�d�ƒ�f�GHqH�d�|�|�d�f�GHqH�W|�o �d�GHn�d��S(���NR���i����i���s��� i���s���%s%s: %ss���%s%s( ���t���padt���ranget���indentt���xt���titlet���itemsR���R/���t���xstrt ���whitespace(���R���Rj���Rk���Rh���Rm���R���Rf���Ri���(����(����R���t���_print_section¯���s����� �$c���������C���sÕ���|�i�t�i�i�d�d�ƒ�ƒ�}�t�i�|�ƒ�}�g��}�|�i �t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i �t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i �t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i �t�d �ƒ�t�|�d �ƒ�f�ƒ�|��i�t�d�ƒ�|�ƒ�d��S(���NR%���s ���meta.jsont���Servert���webAppPrefixs���Server Versiont���versions���Date Createdt���createdt���Creatort ���principalNames���General:(���t���zip_archiveR"���R+���R���R.���t���partt���jsont���loadst���datat���to_printR0���R���R���R���Rn���(���R���Ru���Ry���Rz���Rv���(����(����R���t���_print_general¾���s����""""c���������C���s³���|�i�t�i�i�d�d�ƒ�ƒ�}�t�i�|�ƒ�}�g��}�|�i �t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i �t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i �t�d�ƒ�t�|�d�ƒ�f�ƒ�|��i�t�d �ƒ�|�ƒ�d��S( ���NR%���s ���consumer.jsont���NameRV���t���UUIDt���uuidt���Types ���type.labels ���Consumer:(���Ru���R"���R+���R���R.���Rv���Rw���Rx���Ry���Rz���R0���R���R���R���Rn���(���R���Ru���Ry���Rz���Rv���(����(����R���t���_print_consumerÉ���s����"""c���������C���sD���d��}�x7�t�|�d�ƒ�D]&�}�|�d�|�j�o�|�d�}�Pq�q�W|�S(���Ns���pool.productAttributesRV���t���value(���R���t���return_valueR���Ry���t���attrRV���(���R���RV���Ry���R‚���Rƒ���(����(����R���t���_get_product_attributeÓ���s����� c���������C���sà��|�i�ƒ��}�t�|�ƒ�d�j�o*�|��i�t�d�ƒ�d�g�g�d�t�ƒ�d��Sn�x|�D]ˆ}�|�i �|�ƒ�} �t�i�| �ƒ�}�g��}�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d �ƒ�t�|�d �ƒ�f�ƒ�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d �ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d�ƒ�|��i�d�|�ƒ�f�ƒ�|�i�t�d�ƒ�|��i�d�|�ƒ�f�ƒ�|�i�t�d�ƒ�|��i�d�|�ƒ�f�ƒ�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�|�i�t�d�ƒ�t�|�d�ƒ�f�ƒ�t�i�i�d�d�d�|�d �ƒ�} �|�i�t�d!�ƒ�| �f�ƒ�|�d"�d�d#�d �}�t�i�i�d�d$�d%�|�ƒ�}�|�i�t�d&�ƒ�|�f�ƒ�y�t�i�|�i �|�ƒ�ƒ�}�Wn7�t�i�j �o(�}�t�i�t�d'�ƒ�|�|�f�ƒ�‚�n�X|�i�t�d(�ƒ�|�i�f�ƒ�|��i�t�d)�ƒ�|�d�t�ƒ�g��}�|�d*�d+�D]!�}�|�t!�|�d,�ƒ�|�d-�f�q@~�}�|��i�t�d.�ƒ�t"�|�ƒ�d/�t�ƒ�g��}�|�i#�D]�} �|�| �i%�g�qš~�}�|��i�t�d0�ƒ�t"�|�ƒ�d/�t�ƒ�qP�Wd��S(1���Ni����s���Subscriptions:R���i���R|���s���pool.productNamet���Quantityt���quantityt���CreatedRr���s ���Start Datet ���startDates���End Datet���endDates ���Service Levelt ���support_levels���Service Typet���support_typet ���Architecturest���archt���SKUs���pool.productIdt���Contracts���pool.contractNumbert���Orders���pool.orderNumbert���Accounts���pool.accountNumberR%���R&���s���%s.jsont���ids���Entitlement Filet���certificatest���serialt���entitlement_certificatess���%s.pems���Certificate Files(���Unable to read certificate file '%s': %ss���Certificate Versions ���Subscription:t���poolt���providedProductst ���productIdt���productNames���Provided Products:i���s ���Content Sets:(&���Ru���R1���R&���R/���R���Rn���R���R#���t���ent_fileR"���Rv���Rw���Rx���Ry���Rz���R0���R���R„���R+���R���R.���t���entitlement_fileR”���t ���cert_filet���certificatet���create_from_pemt���certt���CertificateExceptiont���ceRq���RT���t���_[1]t���ppt���intt���sortedt���contentR���t���url(���R���Ru���Rœ���R¡���Rz���Rš���R”���R£���R&���R›���Rv���Ry���R¢���R���RŸ���(����(����R���t���_print_productsÜ���sH����"�"""""%%%"""" $="*c���������C���sU���t��|��i�ƒ��d�ƒ�}�d�GHt�d�ƒ�GHd�GH|��i�|�ƒ�|��i�|�ƒ�|��i�|�ƒ�d�S(���s:��� Does the work that this command intends. R���s.��� +-------------------------------------------+s ��� Manifests.���+-------------------------------------------+ N(���R ���R���R\���t���tempR���R{���R€���R¨���(���R���R©���(����(����R���t���_do_command��s����� ( ���RQ���RR���R���R#���Rn���R{���R€���R„���R¨���Rª���(����(����(����R���Rd���¨���s��� 2t���DumpManifestCommandc�����������B���s#���t��Z�d�„��Z�d�„��Z�d�„��Z�RS(���Nc���������C���s…���t��i�|��d�d�d�d�g�d�t�d�ƒ�d�t�ƒ|��i�i�d�d �d �d�t�d�ƒ�ƒ|��i�i�d �d�d�d�d �d�d�t�d�t�d�ƒ�ƒd��S(���NRV���s ���dump-manifestRW���t���dmRX���s���Dump the contents of a manifestRY���s ���--destinationt���destt���destinationt���helps$���directory to extract the manifest tos���-fs���--forcet���actiont ���store_truet���overwrite_filest���defaults���overwrite files which may exist(���R���R���R���R���R#���t���parsert ���add_optionRT���(���R���(����(����R���R�����s���� c���������C���s†���y�|��i�|�|�ƒ�Wnk�t�j �o_�}�|�i�t�i�j�o�t�d�ƒ�|�i �GHn*�t�d�ƒ�GH|�i �GH|�i �o�|�i �GHn�t�Sn�Xt�S(���Ns7���File "%s" exists. Use -f to force overwriting the file.s���Manifest could not be written:( ���R���Rc���R®���RN���t���EnvironmentErrort���et���errnot���EEXISTR���R*���t���strerrorRT���R#���(���R���R®���RN���R·���(����(����R���t���_extract*��s���� c���������C���s{���|��i�i�o<�|��i�|��i�i�|��i�i�ƒ�o�t�d�ƒ�|��i�i�GHqw�n/�|��i�t�i�ƒ��|��i�i�ƒ�o�t�d�ƒ�GHn�d�S(���s:��� Does the work that this command intends. s0���The manifest has been dumped to the %s directorys5���The manifest has been dumped to the current directoryN(���R���t���optionsR®���R»���R²���R���R+���t���getcwd(���R���(����(����R���Rª���;��s����� (���RQ���RR���R���R»���Rª���(����(����(����R���R«�����s��� (���t ���cStringIOR���R¸���t���gettextR+���R���t���zipfileR ���R���t���rhsmR���t���rct.commandsRZ���t���rct.printingRl���t���subscription_manager.cliR^���t���ourjsonRw���R���R���R ���R���Rd���R«���(���R^���R���R���R���R¸���R«���RZ���R ���R¿���R���Rw���R���R���Rd���Rl���R+���R���R ���(����(����R���t���?���s ��� W%u