Current Path : /usr/lib/python2.7/dist-packages/debian/ |
Current File : //usr/lib/python2.7/dist-packages/debian/debfile.pyc |
}Nc @ s\ 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 d Z d d d g a d Z d d d d d g Z d Z d Z d Z d Z d e f d YZ d e f d YZ d e f d YZ d e f d YZ d e f d YZ e d k rXd d l Z e d e j d Z e j j Z e j d GHn d S(! iN( t ArFilet ArError( t Changelog( t Deb822s data.tars control.tart gzt bz2t lzmas debian-binaryt preinstt postinstt prermt postrmt configt controls usr/share/doc/%s/changelog.gzs$ usr/share/doc/%s/changelog.Debian.gzt md5sumst DebErrorc B s e Z RS( ( t __name__t __module__( ( ( s2 /usr/lib/python2.7/dist-packages/debian/debfile.pyR % s t DebPartc B sn e Z d Z d Z d Z e d Z d Z d Z d Z d Z d Z d Z d Z RS( sW 'Part' of a .deb binary package. A .deb package is considered as made of 2 parts: a 'data' part (corresponding to the 'data.tar.gz' archive embedded in a .deb) and a 'control' part (the 'control.tar.gz' archive). Each of them is represented by an instance of this class. Each archive should be a compressed tar archive; supported compression formats are: .tar.gz, .tar.bz2 . When referring to file members of the underlying .tar.gz archive, file names can be specified in one of 3 formats "file", "./file", "/file". In all cases the file is considered relative to the root of the archive. For the control part the preferred mechanism is the first one (as in deb.control.get_content('control') ); for the data part the preferred mechanism is the third one (as in deb.data.get_file('/etc/vim/vimrc') ). c C s | | _ d | _ d S( N( t _DebPart__membert Nonet _DebPart__tgz( t selft member( ( s2 /usr/lib/python2.7/dist-packages/debian/debfile.pyt __init__: s c C s | j d k r | j j } | j d rc t j d | j d d } t j d | d d | _ q | j d r t j d | j d d | _ q t d | n | j S( s Return a TarFile object corresponding to this part of a .deb package. Despite the name, this method gives access to various kind of compressed tar archives, not only gzipped ones. s .gzt fileobjt modet rs .bz2s r:bz2s"