관리-도구
편집 파일: primer_prepare_command.cpython-311.pyc
� �܋f� � �Z � d dl mZ d dlZd dlmZ d dlmZ d dlmZ G d� de� � Z dS )� )�annotationsN)�Git)�Repo)� PrimerCommandc � � e Zd Zdd�ZdS )�PrepareCommand�return�Nonec � � d}d� d� t j d d� D � � � � }| j j rS| j � � � D ]7\ }}|� � � }t d|� d|� d�� � ||dz z }�8�n^| j j ra| j � � � D ]F\ }}t |j � � j j j }t d |� d|� d�� � ||dz z }�Gn�| j j r�| j � � � D ]h\ }}t! � � � |j |j � � � d � � d }t d|� d |� d�� � ||dz z }�inb| j j rVt- | j d|� d�z d�� � 5 }t |� � � � � d d d � � n# 1 swxY w Y |rNt- | j d|� d�z dd�� � 5 }|� |� � d d d � � d S # 1 swxY w Y d S d S )N� �.c 3 �4 K � | ]}t |� � V � �d S )N)�str)�.0�xs ��/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pylint/testutils/_primer/primer_prepare_command.py� <genexpr>z%PrepareCommand.run.<locals>.<genexpr> s( � � � �!G�!G�Q�#�a�&�&�!G�!G�!G�!G�!G�!G� � zCloned 'z ' at commit 'z'.�_zFound '� r �'z' remote is at commit '�commit_string_z.txtzutf-8)�encoding�w)�join�sys�version_info�config�clone�packages�items� lazy_clone�print�checkr �clone_directory�head�object�hexsha�make_commit_stringr � ls_remote�url�branch�split�read_commit_string�open�primer_directory�read�write)�self� commit_string�version_string�package�data�local_commit�remote_sha1_commit�fs r �runzPrepareCommand.run s( � �� ����!G�!G�#�2B�2�A�2�2F�!G�!G�!G�G�G���;�� �!%��!4�!4�!6�!6� 4� 4� ���#���0�0���G��G�G�|�G�G�G�H�H�H����!3�3� � � 4� �[� � �!%��!4�!4�!6�!6� 4� 4� ���#�D�$8�9�9�>�E�L���F��F�F�l�F�F�F�G�G�G����!3�3� � � 4� �[� +� �!%��!4�!4�!6�!6� :� :� ����E�E�O�O�D�H�d�k�:�:�@�@��F�F�q�I� #� �P�'�P�P�:L�P�P�P�Q�Q�Q��!3�c�!9�9� � � :� �[� +� ���%�(M��(M�(M�(M�M� �� � � � ��a�f�f�h�h���� � � � � � � � � � � ���� � � � � � '���%�(M��(M�(M�(M�M�� �� � � '� ���� �&�&�&� '� '� '� '� '� '� '� '� '� '� '� '���� '� '� '� '� '� '� '� 's$ �8"G&�&G*�-G*�H4�4H8�;H8N)r r )�__name__� __module__�__qualname__r<