-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /proc/thread-self/root/proc/thread-self/root/usr/share/python/debpython/
File Upload :
Current File : //proc/thread-self/root/proc/thread-self/root/usr/share/python/debpython/debhelper.pyc

ó
([Uc@sgddlZddlmZmZddlmZmZmZeje	ƒZ
defd„ƒYZdS(iÿÿÿÿN(tmakedirstchmod(texiststjointdirnamet	DebHelpercBsVeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s>Reinvents the wheel / some dh functionality (Perl is ugly ;-P)cCs¤||_i|_d|_t}d}|j}|j}ytddƒ}Wntk
rkt	dƒ‚nXt
}}xì|D]ä}	|	jƒs¡t
}d}q}n|r%|jdƒr¼q}n|rÔ||krÔq}n|rì||krìq}n|	jdƒra|	djƒ}
|
|j|d<q}qaq}|	jdƒrÅ|	d	jƒ}|jdƒrit
jd
|ƒq}n|r||krq}n|r™||kr™q}niid6id6gd
6dd6|j|<q}|	jdƒrê|	djƒ|_q}|r}|	jƒjdƒr-t}|js-|	djƒ|_q-n|	jƒjdƒrat}|	djƒ|_qaq}q}W|r|rt
jdƒnt
jd|j|jjƒƒdS(Nsdebian/controltrscannot find debian/control filetpython3s
Architecture:i
tarchsPackage:isskipping Python 3.X package: %st	substvarstautoscriptst	rtupdatestanysSource:isxs-python-version:isx-python-version:is3Please remove XS-Python-Version from debian/controlssource=%s, binary packages=%s(toptionstpackagestNonetpython_versiontTruetpackaget
no_packagetopentIOErrort	ExceptiontFalsetstript
startswithtlogtdebugtsource_nametlowerterrortkeys(tselfR
tsource_sectiontbinary_packagetpkgst	skip_pkgstfptxspvtxpvtlineR((s(/usr/share/python/debpython/debhelper.pyt__init__ sn					


	
	cCs(|j|dj|gƒj|ƒdS(sdebhelper's addsubstvarR	N(Rt
setdefaulttappend(R Rtnametvalue((s(/usr/share/python/debpython/debhelper.pytaddsubstvar`scCs4|j|dj|iƒj|gƒj|ƒdS(sdebhelper's autoscriptR
N(RR*R+(R Rtwhenttemplatetargs((s(/usr/share/python/debpython/debhelper.pyt
autoscriptdscCs|j|dj|ƒdS(NR(RR+(R RR-((s(/usr/share/python/debpython/debhelper.pytadd_rtupdateisc	CsÉxÂ|jjƒD]±\}}|jdƒ}|s7qnx‡|jƒD]y\}}d||f}t|ƒr„t|dƒjƒ}nd}d}xé|jƒD]Û\}	}
xÌ|
D]Ä}tttƒdd|	ƒ}t|ƒsëd|	}nt|dƒjƒ}
|j	j
r'|
r'|
jddƒ}
n|
jd|ƒ}
|
jd	|ƒ}
|
|kr°|
|kr°|d
|
7}q°q°WqW|rD|dd|7}t|d
ƒ}|j|ƒ|j
ƒqDqDWqWdS(NR
sdebian/%s.%s.debhelperRts..sautoscripts/%ss#/usr/share/debhelper/autoscripts/%ss	#PACKAGE#s#ARGS#s
%ss%
# Automatically added by dh_python2:s%%s
# End automatically added section
tw(Rt	iteritemstgetRRtreadRRt__file__R
tcompile_alltreplacetwritetclose(R RtsettingsR
R/t	templatestfntdatatnew_datattpl_nameR1titfpathttplR%((s(/usr/share/python/debpython/debhelper.pytsave_autoscriptsls:



cCsx|jjƒD]\}}|jdƒ}|s7qnd|}t|ƒret|dƒjƒ}nd}xc|jƒD]U\}}|jd|ƒ}|dkra||jdƒ}	||td|ƒ|	dkrà||	nd!}
g|
j	dƒD]}|r÷|j
ƒ^q÷}|	dkrT|||	j
ƒrTd	|| |||	f}qg|| }ng}x*|D]"}
|
|krn|j|
ƒqnqnW|rx|r­|d7}n|d
|dj|ƒf7}qxqxW|j
ddƒ}|rt|d
ƒ}|j|ƒ|jƒqqWdS(NR	sdebian/%s.substvarsRR4s%s=iÿÿÿÿs
t,s%s
%ss%s=%s
s, s

R5(RR6R7RRR8tfindtlenRtsplitRR+RR;R<R=(R RR>R	R@RAR,tvaluestpteR(RDtitemstjR%((s(/usr/share/python/debpython/debhelper.pytsave_substvars‘s>
. 


$
cCsMxF|jjƒD]5\}}|jjr.dnd|}|jdƒ}|sSqnd|}t|ƒsvt|ƒnd||f}t|ƒrªt|dƒjƒ}nd}xV|D]N\}}	dd	||fd
||	|f}
|
|kr·|d|
7}q·q·W|rt|dƒ}|j	|ƒ|j
ƒt|d
ƒqqWdS(NR4s-p %sRs$debian/%s/usr/share/python/runtime.ds%s/%s.rtupdateRs#! /bin/sh
set -esif [ "$1" = rtupdate ]; thens
	pyclean %s %ss
	pycompile %s %s %s
fis
%sR5ií(RR6R
R:R7RRRR8R<R=R(R RR>tpkg_argRLtdR@RAtdnameR1tcmdR%((s(/usr/share/python/debpython/debhelper.pyt
save_rtupdateµs,



cCs"|jƒ|jƒ|jƒdS(N(RQRGRV(R ((s(/usr/share/python/debpython/debhelper.pytsaveÏs

(t__name__t
__module__t__doc__R)R.R2R3RGRQRVRW(((s(/usr/share/python/debpython/debhelper.pyRs	@				%	$	(
tloggingtosRRtos.pathRRRt	getLoggerRXRtobjectR(((s(/usr/share/python/debpython/debhelper.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee