HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/distutils/__pycache__/archive_util.cpython-310.opt-2.pyc
o

�i|!�@sD	ddlZddlmZddlZzddlZWney dZYnwddlmZddlm	Z	ddl
mZddlm
Z
zddlmZWneyLdZYnwzddlmZWney`dZYnwd	d
�Zdd�Z		d"dd�Zd#dd�Zedgdfedgdfedgdfedgdfedgdfegdfd�Zdd�Z		d$d d!�ZdS)%�N)�warn)�DistutilsExecError)�spawn)�mkpath)�log)�getpwnam)�getgrnamcC�N	tdus	|durdSzt|�}Wntyd}Ynw|dur%|dSdS�N�)r�KeyError��name�result�r�3/usr/local/lib/python3.10/distutils/archive_util.py�_get_gid��rcCr	r
)rrr
rrr�_get_uid+rr�gzipcs4	dddddd�}dddd	d
�}|dur||��vrtd��|d}	|d
kr.|	|�|d�7}	ttj�|	�|d�ddl}
t�	d�t
���t�������fdd�}|sq|
�|	d||�}z
|j
||d�W|��n|��w|d
kr�tdt�|	||}
tjdkr�||	|
g}n|d|	g}t||d�|
S|	S)N�gz�bz2�xz�)r�bzip2rN�compressz.gzz.bz2z.xzz.Z)rrrrzKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tarr��dry_runrzCreating tar archivecs,�dur
�|_�|_�dur�|_�|_|S�N)�gid�gname�uid�uname)�tarinfo�r�group�ownerr!rr�_set_uid_gidasz"make_tarball.<locals>._set_uid_gidzw|%s)�filterz'compress' will be deprecated.�win32z-f)�keys�
ValueError�getr�os�path�dirname�tarfiler�inforr�open�add�closer�PendingDeprecationWarning�sys�platformr)�	base_name�base_dirr�verboserr&r%�tar_compression�compress_ext�archive_namer0r'�tarZcompressed_name�cmdrr$r�make_tarball7sD���
	


r@c
Cs�	|d}ttj�|�|d�tdur5|rd}nd}z
td|||g|d�W|Sty4td|��wt�d||�|s�ztj	|dtj
d	�}Wnty[tj	|dtjd	�}Ynw|�o|tj
kr{tj�tj�|d
��}|�||�t�d|�t�|�D]D\}}	}
|	D]}tj�tj�||d
��}|�||�t�d|�q�|
D]}tj�tj�||��}tj�|�r�|�||�t�d|�q�q�Wd�|S1s�wY|S)Nz.ziprz-rz-rq�zipzkunable to create zip file '%s': could neither import the 'zipfile' module nor find a standalone zip utilityz#creating '%s' and adding '%s' to it�w)�compressionrzadding '%s')rr-r.r/�zipfilerrrr1�ZipFile�ZIP_DEFLATED�RuntimeErrorZ
ZIP_STORED�curdir�normpath�join�write�walk�isfile)r8r9r:r�zip_filenameZ
zipoptionsrAr.�dirpath�dirnames�	filenamesrrrr�make_zipfilesh�%����
�
��
���
��rR)rrzgzip'ed tar-file)rrzbzip2'ed tar-file)rrzxz'ed tar-file)rrzcompressed tar file)rNzuncompressed tar filezZIP file)�gztar�bztar�xztarZztarr>rAcCs 	|D]
}|tvr
|SqdSr)�ARCHIVE_FORMATS)�formats�formatrrr�check_archive_formats�s�rYc
Cs
	t��}|durt�d|�tj�|�}|st�|�|dur#tj}d|i}	zt|}
Wn
t	y:t
d|��w|
d}|
dD]\}}
|
|	|<qC|dkrX||	d<||	d<z|||fi|	��}W|durrt�d	|�t�|�|S|dur�t�d	|�t�|�ww)
Nzchanging into '%s'rzunknown archive format '%s'r�rAr&r%zchanging back to '%s')r-�getcwdr�debugr.�abspath�chdirrHrVrr+)r8rX�root_dirr9r:rr&r%�save_cwd�kwargs�format_info�func�arg�val�filenamerrr�make_archive�s>
�

��rg)rrrNN)rr)NNrrNN)r-�warningsrr6rD�ImportErrorZdistutils.errorsrZdistutils.spawnrZdistutils.dir_utilrZ	distutilsr�pwdr�grprrrr@rRrVrYrgrrrr�<module>sP���
�
H
=



�	
�