403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/scons/SCons/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/scons/SCons/CacheDir.pyc
�
�b3Qc@s�dZdZddlZddlZddlZddlZeZ	e
Ze
Ze
Z
d�Zd�Zejjee�Zejjed�Zd�Zejjed�Zdefd��YZdS(	s7src/engine/SCons/CacheDir.py  2013/03/03 09:48:35 garyos
CacheDir support
i����Nc	Cs�|d}|j}|j�}|j|�\}}|j|�sZ|jd||�dS|jd||�tjjr�|j|�r�|j	|j
|�|j�n|j||j�|j
|�}|j|jt
j|t
j�t
jB�ndS(Nis$CacheRetrieve(%s):  %s not in cache
is'CacheRetrieve(%s):  retrieving from %s
(tfstget_CacheDirt	cachepathtexistst
CacheDebugtSConstActiontexecute_actionstislinktsymlinktreadlinktpathtcopy_from_cachetstattchmodtS_IMODEtST_MODEtS_IWRITE(	ttargettsourcetenvttRtcdtcachedirt	cachefiletst((s /usr/lib/scons/SCons/CacheDir.pytCacheRetrieveFunc)s
	-cCsU|d}|j}|j�}|j|�\}}|jj|�rQd|jSdS(NisRetrieved `%s' from cache(RRRRRtNone(RRRRRRRR((s /usr/lib/scons/SCons/CacheDir.pytCacheRetrieveString;s
	cCs�|d}|jrdS|j}|j�}|j|�\}}|j|�rg|jd||�dS|jd||�|dttj��}d}	|j	|�sy|j
|�Wqtk
r|j	|�s|	t|�|f}
tj
j|
��qqXny�|j|j�r?|j|j|j�|�n|j|j|�|j||�|j|j�}|j|tj|tj�tjB�Wn@tk
r�|	t|�|f}
tjjtjj|
�nXdS(Nis+CachePush(%s):  %s already exists in cache
sCachePush(%s):  pushing to %s
s.tmps,Unable to copy %s to cache. Cache file is %s(tnocacheRRRRRtstrtostgetpidtisdirtmakedirstEnvironmentErrorRtErrorsRRR	R
tcopy2trenameR
RRRRtWarningstwarntCacheWriteErrorWarning(RRRRRRRRttempfileterrfmttmsgR((s /usr/lib/scons/SCons/CacheDir.pyt
CachePushFuncHs:
		
+
tCacheDircBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCskyddl}Wn9tk
rKd}tjjtjj|�d|_n
X||_d|_d|_	dS(Ni����s<No hashlib or MD5 module available, CacheDir() not supported(
thashlibtImportErrorRR'R(tNoMD5ModuleWarningRRtcurrent_cache_debugtdebugFP(tselfRR/R,((s /usr/lib/scons/SCons/CacheDir.pyt__init__~s

		cCs�t|jkrZtdkr*tj|_n$trEttd�|_n	d|_t|_n|jr�|jj||tj	j
|�df�ndS(Nt-twi(tcache_debugR2tsyststdoutR3topenRtwriteRRtsplit(R4tfmtRR((s /usr/lib/scons/SCons/CacheDir.pyR�s		cCsto|jdk	S(N(t
cache_enabledRR(R4((s /usr/lib/scons/SCons/CacheDir.pyt
is_enabled�scCs]|j�sdS|j�}|dj�}tjj|j|�}|tjj||�fS(s	
        iN(NN(R@Rtget_cachedir_bsigtupperRRtjoin(R4tnodetsigtsubdirtdir((s /usr/lib/scons/SCons/CacheDir.pyR�scCs�|j�stS|j�}tr]t|g|dd�dkr|jdddd�tSn"t|g|dd�dkrtStS(sS
        This method is called from multiple threads in a parallel build,
        so only do thread safe stuff here. Do thread unsafe stuff in
        built().

        Note that there's a special trick here with the execute flag
        (one that's not normally done for other actions).  Basically
        if the user requested a no_exec (-n) build, then
        SCons.Action.execute_actions is set to 0 and when any action
        is called, it does its showing but then just returns zero
        instead of actually calling the action execution operation.
        The problem for caching is that if the file does NOT exist in
        cache then the CacheRetrieveString won't return anything to
        show for the task, but the Action.__call__ won't call
        CacheRetrieveFunc; instead it just returns zero, which makes
        the code below think that the file *was* successfully
        retrieved from the cache, therefore it doesn't do any
        subsequent building.  However, the CacheRetrieveString didn't
        print anything because it didn't actually exist in the cache,
        and no more build actions will be performed, so the user just
        sees nothing.  The fix is to tell Action.__call__ to always
        execute the CacheRetrieveFunc and then have the latter
        explicitly check SCons.Action.execute_actions itself.
        texecuteiitpresub(R@tFalset
get_build_envt
cache_showtCacheRetrieveSilenttbuildtTruet
CacheRetrieve(R4RDR((s /usr/lib/scons/SCons/CacheDir.pytretrieve�scCs&|j�sdSt|g|j��S(N(R@t	CachePushRK(R4RD((s /usr/lib/scons/SCons/CacheDir.pytpush�scCstr|j|�SdS(N(tcache_forceRS(R4RD((s /usr/lib/scons/SCons/CacheDir.pytpush_if_forced�s(	t__name__t
__module__R5RR@RRQRSRU(((s /usr/lib/scons/SCons/CacheDir.pyR.|s					'	(t__revision__t__doc__tos.pathRR
R9tSCons.ActionRROR?RJR8RTRLRRRRPRRMR-RRtobjectR.(((s /usr/lib/scons/SCons/CacheDir.pyt<module>s 				2

Youez - 2016 - github.com/yon3zu
LinuXploit