관리-도구
편집 파일: rebuild.cpython-311.pyc
� R�DgX � �v � d dl Z d dlZd dlZd dlZd dlZd dlmZmZ d dlm Z d dl mZmZ ddg dfd�Z d� Zd� ZdS ) � N)� check_call�check_output)�TarFile)�METADATA_FN�ZONEFILENAME�gzc �� �� t j � � �t j � �d� � }t j � t � � } t j | � � 5 }|D ]}|� |�� � ��fd�|D � � } t || � � ddd� � n# 1 swxY w Y t t j � |t � � d� � 5 } t j || dd�� � ddd� � n# 1 swxY w Y t j � |t � � }t j |d|z � � 5 }t j |� � D ]8}t j � ||� � } |� | |� � �9 ddd� � n# 1 swxY w Y t# j �� � dS # t# j �� � w xY w) z�Rebuild the internal timezone info in dateutil/zoneinfo/zoneinfo*tar* filename is the timezone tarball from ``ftp.iana.org/tz``. �zoneinfoc �P �� g | ]"}t j � �|� � ��#S � )�os�path�join)�.0�n�tmpdirs ��y/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/dateutil/zoneinfo/rebuild.py� <listcomp>zrebuild.<locals>.<listcomp> s) �� �E�E�E�Q�����f�a�0�0�E�E�E� N�w� T)�indent� sort_keyszw:%s)�tempfile�mkdtempr r r �dirname�__file__r �open�extract�_run_zicr �json�dumpr �listdir�add�shutil�rmtree)�filename�tag�format� zonegroups�metadata�zonedir� moduledir�tf�name� filepaths�f�target�entry� entrypathr s @r �rebuildr5 ss �� � � � � �F��g�l�l�6�:�.�.�G������)�)�I�� �\�(� #� #� )�r�"� )� )��� � �4��(�(�(�(�E�E�E�E�*�E�E�E�I��W�i�(�(�(� )� )� )� )� )� )� )� )� )� )� )���� )� )� )� )� �"�'�,�,�w��4�4�c� :� :� =�a��I�h��!�t�<�<�<�<� =� =� =� =� =� =� =� =� =� =� =���� =� =� =� =�����i��6�6�� �\�&�&�6�/� 2� 2� )�b���G�,�,� )� )���G�L�L��%�8�8� ����y�%�(�(�(�(� )� )� )� )� )� )� )� )� )� )� )� )���� )� )� )� )� � �f�������� �f�������sz �G �.:B4�(G �4B8�8G �;B8�<6G �2D�G �D�G �D�A G �AF:�.G �:F>�>G �F>�G �G1c � � t ddg� � }n"# t $ r}t |� � � d}~ww xY wd|v rddg}ng }t dg|z d| gz |z � � dS )a� Calls the ``zic`` compiler in a compatible way to get a "fat" binary. Recent versions of ``zic`` default to ``-b slim``, while older versions don't even have the ``-b`` option (but default to "fat" binaries). The current version of dateutil does not support Version 2+ TZif files, which causes problems when used in conjunction with "slim" binaries, so this function is used to ensure that we always get a "fat" binary. �zicz--helpNs -b z-b�fatz-d)r �OSError�_print_on_nosuchfiler )r, r0 � help_text�e� bloat_argss r r r ) s� � �� �%��!2�3�3� � ��� � � ��Q���� ��������� �����E�]� � �� ���w��#�t�W�o�5� �A�B�B�B�B�Bs � � 3�.�3c �H � | j dk rt j d� � dS dS )zdPrint helpful troubleshooting message e is an exception raised by subprocess.check_call() � zzCould not find zic. Perhaps you need to install libc-bin or some other package that provides it, or it's not in your PATH?N)�errno�logging�error)r<