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/share/python/debpython/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/python/debpython/pydist.pyc
ó
J˜ÀQc@€s/ddlmZddlZddlZddlZddlmZmZmZddl	m
Z
mZddlm
Z
mZmZddlmZejeƒZejdƒZejdejƒZejd	ejƒZd
„Zeddd
d„ƒZdd„Zd„Zd„Zd„Z d„Z!dS(iÿÿÿÿ(twith_statementN(texiststisdirtjoin(tPIPEtPopen(tvreprtgetvertget_requested_versions(tmemoizes/.*?/usr/lib/python(\d.\d+)/(site|dist)-packagessÍ
    (?P<name>[A-Za-z][A-Za-z0-9_.]*)             # Python distribution name
    \s*
    (?P<vrange>(?:-?\d\.\d+(?:-(?:\d\.\d+)?)?)?) # version range
    \s*
    (?P<dependency>(?:[a-z][^;]*)?)              # Debian dependency
    (?:  # optional upstream version -> Debian version translator
        ;\s*
        (?P<standard>PEP386)?                    # PEP-386 mode
        \s*
        (?P<rules>s/.*)?                         # translator rules
    )?
    s
    (?P<name>[A-Za-z][A-Za-z0-9_.]*)     # Python distribution name
    \s*
    (?P<enabled_extras>(?:\[[^\]]*\])?)  # ignored for now
    \s*
    (?:  # optional minimum/maximum version
        (?P<operator><=?|>=?|==|!=)
        \s*
        (?P<version>(\w|[-.])+)
    )?
    cC€s‹t|ƒy}xo|D]g}|jdƒ}|jdƒs|rGqntj|ƒstjd|jddƒd|ƒtSqWWdQXt	S(s Check if pydist file looks good.s
t#s"invalid pydist data in file %s: %st/iiÿÿÿÿN(
topentstript
startswitht	PYDIST_REtmatchtlogterrortrsplittFalsetTrue(tfpathtfptline((s%/usr/share/python/debpython/pydist.pytvalidate<s
	s/usr/share/python/dist/sdebian/pydist-overridess/usr/share/python/dist_fallbackc
€s”t|ƒr|g}ng}tˆƒrS|j‡fd†tjˆƒDƒƒnt|ƒro|j|ƒni}x|D]}t|ƒü}xò|D]ê}|jdƒ}|jdƒs˜|rÉq˜nt	j
|ƒ}|s÷td||fƒ‚n|jƒ}t
|dƒ}	t|dƒ|d<|djƒ|d<|d	r_|d	jd
ƒ|d	<n
g|d	<|j|	gƒj|ƒq˜WWdQXq|W|S(s5Load iformation about installed Python distributions.c3€s|]}tˆ|ƒVqdS(N(R(t.0ti(tdname(s%/usr/share/python/debpython/pydist.pys	<genexpr>Sss
R
sinvalid pydist line: %s (in %s)tnametvrangetversionst
dependencytrulest;N(RRtextendtostlistdirtappendRR
RRtsearcht	Exceptiont	groupdictt	safe_nameRtsplitt
setdefault(
Rtfnametfbnametto_checktresultRRRtdistR((Rs%/usr/share/python/debpython/pydist.pytloadJs4)



'cC€s³tjd||rt|ƒndƒt|tƒrCt|ƒ}ntjdƒj	|ƒj
ƒ\}}t|ƒ|}tƒ}t
j	|ƒ}|sµtjdƒtd|ƒ‚n|jƒ}|d}|j|jƒƒ}|raxx|D]m}|r||jd|ƒkrqín|ds%dS|djdƒr@|dS|d	rR|dS|dSqíWnd
tt|ƒƒ}|r–d|t|ƒf}n
d|}tjd
|ƒtd|dtdtdtƒ}	|	jƒ\}
}|	jdkrttƒ}xC|
jdƒD]2}
|
jƒs$qn|j|
jdƒdƒqWt|ƒdkrgtjd|ƒq‡|j ƒSntjd||ƒt!|ƒ}tj"d||t|ƒƒ|S(Ns-trying to guess dependency for %s (python=%s)s([^><= \[]+)(.*)s[please ask dh_python2 author to fix REQUIRES_RE or your upstream author to fix requires.txtsrequirement is not valid: %sRRR t)tversions'*/%s-?*\.egg-info's"%s | grep '/python%s/\|/pyshared/'s$%s | grep '/python2\../\|/pyshared/'sinvoking dpkg -S %ss/usr/bin/dpkg -S %stshelltstdouttstderris
t:is,more than one package name found for %s dists'dpkg -S did not find package for %s: %ss³Cannot find installed package that provides %s. Using %s as package name. Please add "%s correct_package_name" line to debian/pydist-overrides to override it if this is incorrect.(#RtdebugRtNonet
isinstancet
basestringRtretcompileRtgroupsR*R2tREQUIRES_REtinfoR(R)tgettlowertendswitht	ci_regexpRRRtcommunicatet
returncodetsetR+R
taddtlenRtpoptsensible_pnametwarn(treqR4Rtresttdatatreq_dicttdetailstitemtquerytprocessR6R7R0Rtpname((s%/usr/share/python/debpython/pydist.pytguess_dependencyms`	$	






	
	c	C€stj|ƒ}|r'|jdƒ}nd}g}t}}g}t|dƒñ}g|jƒD]}|jƒ^qb}	xÂ|	D]º}
|
s|
jdƒr°|j	|
ƒqn|
jdƒrÈt
}n|rá|j	|
ƒqnt|
|ƒ}|r.|j	|ƒd|
jƒkrt
}q;|j	|
ƒq|j	|
ƒqWWdQX|r}t|dƒ}|j
d„|DƒƒWdQXn|S(NitrR
t[t
setuptoolstwcs€s|]}|dVqdS(s
N((RR((s%/usr/share/python/debpython/pydist.pys	<genexpr>Ös(t
PUBLIC_DIR_RERtgroupR:RRt	readlinesR
RR&RRWRCt
writelines(R-t
public_dirtverR0tmodifiedtoptional_sectiont	processedRRtlinesRR ((s%/usr/share/python/debpython/pydist.pytparse_pydep´s:
%

	

	 cC€stjdƒjd|ƒjƒS(sEmulate distribute's safe_name.s[^A-Za-z0-9.]+t_(R=R>tsubRC(R((s%/usr/share/python/debpython/pydist.pyR*ÚscC€sBt|ƒjddƒ}|jdƒr4|d}nd|jƒS(s(Guess Debian package name from Egg name.Rgt-spython-is	python-%s(R*treplaceRRC(tegg_name((s%/usr/share/python/debpython/pydist.pyRLßs
cC€sdjd„|jƒDƒƒS(s'Return case insensitive dpkg -S regexp.tcs€s7|]-}|jƒr+d|jƒ|fn|VqdS(s[%s%s]N(tisalphatupper(RR((s%/usr/share/python/debpython/pydist.pys	<genexpr>és(RRC(R((s%/usr/share/python/debpython/pydist.pyREçs("t
__future__RtloggingR$R=tos.pathRRRt
subprocessRRtdebpython.versionRRRtdebpython.toolsR	t	getLoggert__name__RR>R\tVERBOSERR@RR2R:RWRfR*RLRE(((s%/usr/share/python/debpython/pydist.pyt<module>s,
	!G	&		

Youez - 2016 - github.com/yon3zu
LinuXploit