403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/debian/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/debian/debfile.pyc
ó
}°þNc@s\ddlZddlZddlmZmZddlmZddlmZdZ	dZ
ddd	gad
Zddd
ddgZ
dZdZdZdZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZedkrXddlZedejd ƒZejjƒZejdƒGHndS(!iÿÿÿÿN(tArFiletArError(t	Changelog(tDeb822sdata.tarscontrol.tartgztbz2tlzmas
debian-binarytpreinsttpostinsttprermtpostrmtconfigtcontrolsusr/share/doc/%s/changelog.gzs$usr/share/doc/%s/changelog.Debian.gztmd5sumstDebErrorcBseZRS((t__name__t
__module__(((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR%stDebPartcBsneZdZd„Zd„Zed„ƒZd„Zd„Zd„Z	d„Z
d„Zd	„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') ).
    cCs||_d|_dS(N(t_DebPart__membertNonet
_DebPart__tgz(tselftmember((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt__init__:s	cCs­|jdkr¦|jj}|jdƒrctjd|jddƒ}tjd|ddƒ|_q¦|jdƒr“tj	d|jddƒ|_q¦t
d|ƒ‚n|jS(	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.gztfileobjtmodetrs.bz2sr:bz2s"part '%s' has unexpected extensionN(RRRtnametendswithtgziptGzipFilettarfiletTarFiletopenR(RRR((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyttgz>s!cCs<|jdƒr|d}n|jdƒr8|d}n|S(sw try (not so hard) to obtain a member file name in a form relative
        to the .tar.gz root and with no heading '.' s./it/i(t
startswith(tfname((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt__normalize_memberSs


cCs;tj|ƒ}|jƒjƒ}d||kp:||kS(s.Check if this part contains a given file name.s./(Rt_DebPart__normalize_memberR"tgetnames(RR%tnames((s2/usr/lib/python2.7/dist-packages/debian/debfile.pythas_filedscCsRtj|ƒ}y|jƒjd|ƒSWn!tk
rM|jƒj|ƒSXdS(s8Return a file object corresponding to a given file name.s./N(RR'R"textractfiletKeyError(RR%((s2/usr/lib/python2.7/dist-packages/debian/debfile.pytget_filels

cCs8|j|ƒ}d}|r4|jƒ}|jƒn|S(sRReturn the string content of a given file, or None (e.g. for
        directories).N(R-Rtreadtclose(RR%tftcontent((s2/usr/lib/python2.7/dist-packages/debian/debfile.pytget_contentus
cCst|jƒjƒƒS(N(titerR"R((R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt__iter__‚scCs
|j|ƒS(N(R*(RR%((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt__contains__…scCs
|j|ƒS(N(R*(RR%((s2/usr/lib/python2.7/dist-packages/debian/debfile.pythas_keyˆscCs
|j|ƒS(N(R2(RR%((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt__getitem__‹s(RRt__doc__RR"tstaticmethodR'R*R-R2R4R5R6R7(((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR)s						
			tDebDatacBseZRS((RR(((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR:st
DebControlcBs#eZd„Zd„Zd„ZRS(cCs@i}x3tD]+}|j|ƒr
|j|ƒ||<q
q
W|S(so Return a dictionary of maintainer scripts (postinst, prerm, ...)
        mapping script names to script text. (t
MAINT_SCRIPTSR*R2(RtscriptsR%((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR=–s

cCst|jtƒƒS(s¾ Return the debian/control as a Deb822 (a Debian-specific dict-like
        class) object.
        
        For a string representation of debian/control try
        .get_content('control') (RR2tCONTROL_FILE(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt
debcontrol¡scCs‡|jtƒs"tdtƒ‚n|jtƒ}i}x?|jƒD]1}|jdƒjddƒ\}}|||<qDW|jƒ|S(sf Return a dictionary mapping filenames (of the data part) to
        md5sums. Fails if the control part does not contain a 'md5sum' file.

        Keys of the returned dictionary are the left-hand side values of lines
        in the md5sums member of control.tar.gz, usually file names relative to
        the file system root (without heading '/' or './'). s('%s' file not found, can't list MD5 sumss
iN(	R*tMD5_FILERR-t	readlinestrstriptsplitRR/(Rtmd5_filetsumstlinetmd5R%((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR
ªs
!
(RRR=R?R
(((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR;”s			tDebFilecBszeZdZdddd„Zd„Zed„ƒZed„ƒZed„ƒZ	d„Z
d„Zd	„Zd
„Z
RS(sÊRepresentation of a .deb file (a Debian binary package)

    DebFile objects have the following (read-only) properties:
        - version       debian .deb file format version (not related with the
                        contained package version), 2.0 at the time of writing
                        for all .deb packages in the Debian archive
        - data          DebPart object corresponding to the data.tar.gz (or
                        other compressed tar) archive contained in the .deb
                        file
        - control       DebPart object corresponding to the control.tar.gz (or
                        other compressed tar) archive contained in the .deb
                        file
    RcsÞtj||||ƒt|jƒƒ‰‡fd†}tˆkrVtdtƒ‚ni|_t|j|t	ƒƒƒ|jt	<t
|j|tƒƒƒ|jt<d|_
|jtƒ}|jƒjƒ|_|jƒdS(NcsˆgtD]}d||f^q}ˆjt|ƒƒ}|sQtd|ƒ‚n3t|ƒdkrvtd|ƒ‚nt|ƒdSdS(Ns%s.%ss9missing required part in given .deb (expected one of: %s)is>too many parts in given .deb (was looking for only one of: %s)i(t	PART_EXTStintersectiontsetRtlentlist(tbasenametextt
candidatestparts(tactual_names(s2/usr/lib/python2.7/dist-packages/debian/debfile.pytcompressed_part_nameÓs#

s4missing required part in given .deb (expected: '%s')(RRRKR(t	INFO_PARTRt_DebFile__partsR;t	getmembert	CTRL_PARTR:t	DATA_PARTRt_DebFile__pkgnameR.tstript_DebFile__versionR/(RtfilenameRRRSR0((RRs2/usr/lib/python2.7/dist-packages/debian/debfile.pyRÏs

				cCs|jƒd|_dS(Ntpackage(R?RY(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt__updatePkgNameïscCs|jS(N(R[(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt<lambda>òscCs|jtS(N(RURX(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR_óscCs|jtS(N(RURW(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR_ôscCs
|jjƒS(s See .control.debcontrol() (RR?(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR?øscCs
|jjƒS(s See .control.scripts() (RR=(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR=üscCs
|jjƒS(s See .control.md5sums() (RR
(R((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyR
scCs•|jdkr|jƒnxrt|jt|jgD]V}|jj|ƒr7tjd|jj	|ƒƒ}|j
ƒ}|jƒt|ƒSq7WdS(s† Return a Changelog object for the changelog.Debian.gz of the
        present .deb package. Return None if no changelog can be found. RN(
RYRt_DebFile__updatePkgNametCHANGELOG_DEBIANtCHANGELOG_NATIVEtdataR*RRR-R.R/R(RR%Rt
raw_changelog((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt	changelogs


N(RRR8RRR`tpropertytversionRcRR?R=R
Re(((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyRHÀs
 				t__main__R\i(RRtarfileRRReRtdeb822RRXRWRIRTR<R>RbRaR@RtobjectRR:R;RHRtsystargvtdebRR"RV(((s2/usr/lib/python2.7/dist-packages/debian/debfile.pyt<module>s.f,U

Youez - 2016 - github.com/yon3zu
LinuXploit