🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-23 03:24:53 | PHP 8.2.31
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
public_hooks
/
bin
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bin/__pycache__
🔄 Refresh
✏️
Editing: post_modify_package.cpython-311.pyc
Read Only
� Y�6T�v�� �8 � d Z ddlZddlZddlZddlmZ ddlmZ ej d� � Z d� Z edk r� e� � ej e �� � Z e � d � � � Ze� d� � Ze� dd d�� � e� ddd�� � e � � � Z e� � Zej dk rE e ej d� � e ej d� � e� ej ej �� � dS e�dS )z� Package POST modification hook. This script must be called AFTER different package-related changes in control panel. See --help and docs for detailed description of actions and parameters. � N)�ModifyPackageHook)�setup_logger_and_sentryz^[a-zA-Z0-9._-]{1,255}$c � � | �Qt � | � � s9t d|� d| ��t j �� � t j d� � d S d S d S )NzError: invalid value for z: )�file� )�_VALID_PACKAGE_NAME_RE� fullmatch�print�sys�stderr�exit)�value�option_names ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.40-1.el9.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bin/post_modify_package.py�_validate_package_namer sj � ���!7�!A�!A�%�!H�!H�� �B�+�B�B��B�B��:� � � � ��������� ���� �__main__)�description�command)�dest�renamez--nameTzName of the package)�required�helpz --new-nameFzPackage after rename)�new_name)�__doc__�argparse�rer �clcommon.public_hooks.libr �clcommon.public_hooksr �compiler r �__name__�ArgumentParser�parser�add_subparsers� subparsers� add_parserr �add_argument� parse_args�args�listenerr �namer �post_modify_package�NotImplementedError� r r �<module>r/ s� ��� � ���� � � � � � � � � 7� 7� 7� 7� 7� 7� 9� 9� 9� 9� 9� 9�#���$>�?�?� �� � � �z�������� $�X� $�� 9� 9� 9�F��&�&�I�&�6�6�J� � "� "�8� ,� ,�F� ����4�2� � 4� 4� 4� ����u�3� � 5� 5� 5� �����D� � �"�"�H��|�x�����t�y�(�3�3�3���t�}�l�;�;�;��$�$��I��]� %� � � � � � "�!�- �r
💾 Save Changes
❌ Cancel