Hacked By AnonymousFox

Current Path : /opt/alt/python311/lib64/python3.11/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/archive_util.cpython-311.opt-2.pyc

�

c��f|!��@�	ddlZddlmZddlZ	ddlZn
#e$rdZYnwxYwddlmZddlm	Z	ddl
mZddlm
Z
	ddlmZn
#e$rdZYnwxYw	ddlmZn
#e$rdZYnwxYwd	�Zd
�Z		dd�Zdd
�Zedgdfedgdfedgdfedgdfedgdfegdfd�Zd�Z		dd�ZdS)�N)�warn)�DistutilsExecError)�spawn)�mkpath)�log)�getpwnam)�getgrnamc�x�	t�|�dS	t|��}n#t$rd}YnwxYw|�|dSdS�N�)r	�KeyError��name�results  �=/opt/alt/python311/lib64/python3.11/distutils/archive_util.py�_get_gidr�_��,���4�<��t���$������������������
���a�y���4���-�-c�x�	t�|�dS	t|��}n#t$rd}YnwxYw|�|dSdSr)rr
rs  r�_get_uidr+rr�gzipc������	dddddd�}dddd	d
�}|�%||���vrtd���|dz}	|d
kr|	|�|d��z
}	ttj�|	��|���ddl}
tj	d��t����t��������fd�}|se|
�|	d||z��}	|�
||���|���n#|���wxYw|d
krNtdt ��|	||z}
t"jdkr||	|
g}n|d|	g}t'||���|
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 archivec�H�����|_�|_���|_�|_|S�N)�gid�gname�uid�uname)�tarinfor#�group�ownerr%s ����r�_set_uid_gidz"make_tarball.<locals>._set_uid_gidas.����?��G�K�!�G�M��?��G�K�!�G�M���zw|%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�verboser r)r(�tar_compression�compress_ext�archive_namer4r*�tar�compressed_name�cmdr#r%s     ``        @@r�make_tarballrE7s�������� $�e�4�r�#%�'�'�O�!�F�%� $�&�&�L�����0A�0A�0C�0C� C� C��#�$�$�	$��v�%�L��:�����(�(��2�6�6�6��
�2�7�?�?�<�(�(�'�:�:�:�:��N�N�N��H�
#�$�$�$�
�5�/�/�C�
�5�/�/�C������������l�l�<��/�(�2K�)K�L�L��	��G�G�H�\�G�2�2�2��I�I�K�K�K�K��C�I�I�K�K�K�K�����:����
-�/H�I�I�I�&��h�)?�?���<�7�"�"��\�?�;�C�C��T�<�0�C�
�c�7�#�#�#�#����s�.D�D0c
�(�	|dz}ttj�|��|���t�?|rd}nd}	td|||g|����n7#t$rt
d|z���wxYwtjd||��|�s�	t	j	|dtj
�	��}n1#t$r$t	j	|dtj�	��}YnwxYw|5|tj
krhtj�tj�|d
����}|�||��tjd|��tj|��D�]\}}	}
|	D]k}tj�tj�||d
����}|�||��tjd|���l|
D]�}tj�tj�||����}tj�|��r+|�||��tjd|������	ddd��n#1swxYwY|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')rr1r2r3�zipfilerrrr5�ZipFile�ZIP_DEFLATED�RuntimeError�
ZIP_STORED�curdir�normpath�join�write�walk�isfile)r<r=r>r �zip_filename�
zipoptionsrGr2�dirpath�dirnames�	filenamesrs            r�make_zipfilerZs����v�%�L�
�2�7�?�?�<�(�(�'�:�:�:�:����	��J�J��J�	D��5�*�l�H�=�!�
#�
#�
#�
#�
#��!�	D�	D�	D�%�'3�6B�&C�D�D�
D�	D����	��6��x�	)�	)�	)��	:�
F��o�l�C�29�2F�H�H�H�����
F�
F�
F��o�l�C�29�2D�F�F�F����
F�����
:�
:��r�y�(�(��7�+�+�B�G�L�L��2�,F�,F�G�G�D��I�I�d�D�)�)�)��H�]�D�1�1�1�46�G�H�4E�4E�	:�	:�0�G�X�y� (�6�6��!�w�/�/�����W�d�B�0O�0O�P�P���	�	�$��-�-�-�����5�5�5�5� )�:�:��!�w�/�/�����W�d�0K�0K�L�L���7�>�>�$�/�/�:��I�I�d�D�1�1�1��H�]�D�9�9�9��	:�	:�
:�
:�
:�
:�
:�
:�
:�
:�
:�
:�
:����
:�
:�
:�
:� �s1�A�A8�!B7�7+C%�$C%�*FJ�J�J)rrzgzip'ed tar-file)rrzbzip2'ed tar-file)rrzxz'ed tar-file)rrzcompressed tar file)rNzuncompressed tar filezZIP file)�gztar�bztar�xztar�ztarrBrGc�,�	|D]}|tvr|cS�dSr")�ARCHIVE_FORMATS)�formats�formats  r�check_archive_formatsrc�s6���������(�(��M�M�M�)��4r+c�n�	tj��}|�Jtjd|��tj�|��}|stj|��|�tj}d|i}		t|}
n #t$rtd|z���wxYw|
d}|
dD]
\}}
|
|	|<�|dkr
||	d<||	d<	|||fi|	��}|�)tjd	|��tj|��n1#|�*tjd	|��tj|��wwxYw|S)
Nzchanging into '%s'r zunknown archive format '%s'r�rGr)r(zchanging back to '%s')r1�getcwdr�debugr2�abspath�chdirrOr`r
r/)r<rb�root_dirr=r>r r)r(�save_cwd�kwargs�format_info�func�arg�val�filenames               r�make_archiverr�s���� �y�{�{�H����	�&��1�1�1��G�O�O�I�.�.�	��	��H�X�������9����
!�F�A�%�f�-�����A�A�A��6��?�@�@�@�A�����q�>�D���N�����S���s���
������w����w����4�	�8�6�6�v�6�6�����I�-�x�8�8�8��H�X���������I�-�x�8�8�8��H�X����� �����Os�4
B�B�
D�.D2)rrrNN)rr)NNrrNN)r1�warningsrr:rJ�ImportError�distutils.errorsr�distutils.spawnr�distutils.dir_utilr�	distutilsr�pwdr�grpr	rrrErZr`rcrr�r+r�<module>r|s���

�	�	�	�������
�
�
�
���N�N�N�N�������G�G�G�����0�/�/�/�/�/�!�!�!�!�!�!�%�%�%�%�%�%���������������������H�H�H�������������������H�H�H�����
�
�
�
�
�
�KL�#'�F�F�F�F�P:�:�:�:�z�1�2�4F�
G��2�3�5H�
I��/�0�2B�
C��5�6�8M�
N��/�0�2I�
J��B�z�
*�
������KL�.2�2�2�2�2�2�2s/�� � �A�A
�A
�A�A"�!A"

Hacked By AnonymousFox1.0, Coded By AnonymousFox