HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/share/python/debpython/debhelper.pyc
�
}k^c@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�||kr�q}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�|r�t
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�Wq�W|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