Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
share
/
rhsm
/
rct
/
Upload File :
New :
File
Dir
//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"