ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__/clextselect.cpython-311.pyc |
� E��f�N � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlm Z ddl mZ ddlm Z dd lmZ dd lmZ e� � a G d� de� � ZdS ) � )�absolute_import)�print_function)�divisionN)� in_cagefs� )�ClSelect)�ClSelectExcept)�clprint)�utilsc �Z � e Zd Z e� � rdndZdZdd�Zd� Zd� Zd� Z d � Z d � Zd� Zdd �Z dd�Zdd�Zd� Z ee� � Zd� Zd d�Z ee� � Zd� Z ee� � Zd� Z ee� � Zd� Zd� Zd� Zd� Zed� � � Zed� � � Zed� � � Zed� � � ZdS )!�ClExtSelectz0/etc/cl.selector.conf.d/php.extensions.conflictsz)/etc/cl.selector/php.extensions.conflictsz/opt/alt�phpc �L � t j | |� � g | _ d| _ d S )NF)r �__init__� _conflicts�!_use_default_exts_from_native_php)�self�items �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clextselect.pyr zClExtSelect.__init__# s, � ���$��%�%�%���� 27��.�.�.� c � � || j v S �N)�_hidden_extensions)r �ext_names r �_is_disabled_extentionz"ClExtSelect._is_disabled_extention+ s � ��4�2�2�2r c � � | � � � }| � ||� � | � | j | j |f| j |d�� � }| � d� |� � t j � � dS )zM Adds extensions to default list of extensions for a version �enable_extentions��action� N) �get_all_alternatives_data�_check_alternative�_process_ini_file� DEFAULTS_PATH�_item�_add_extensions�_write_to_file�joinr �r �version�ext_list�alternatives�defaults_contentss r �enable_extensionszClExtSelect.enable_extensions. s� � � �5�5�7�7�������6�6�6� �2�2��� �Z��!�� ��2� 3� 4� 4�� ����I�I�'�(�(�+�*C� E� E� E� E� Er c � � | � � � }| � ||� � | � | j | j |f| j |� � }| � d� |� � | j � � dS )a Replaces extensions to default list of extensions for a version. Writes/updates /etc/cl.selector/defaults.cfg file :param version: alt-php version to process :param ext_list: list extensions to set as defaults for the version r N)r! r"