Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/linksafe.cpython-311.pyc

�

".g����ddlmZddlmZddlmZmZddlmZd�Z	ed��dde
fd	���Zd
edeefd�Z
d
S)�)�ThreadPoolExecutor)�Iterator)�task�run)�install_packagec�D�tdd���t��dS)Nzcloudlinux-linksafeT)�	reinstall)r�assign_linksafe_group���py/clconfigure/linksafe.py�initialize_linksafer
s*��
�)�T�:�:�:�:������rzMAssigning linksafe group to files of 'alt-*' packages residing under /opt/alt��concurrencyc��t|���5}tddd��D]}|�td|g��� 	ddd��dS#1swxYwYdS)N)�max_workerszalt-php*zalt-python*z	alt-ruby*z /usr/bin/cl-linksafe-apply-group)r�_installed_packages_iter�submitr)r�tp�packages   r
r
r
s���	��	4�	4�	4�J��/����
�
�	J�	J�G�

�I�I�c�>��H�I�I�I�I�	J�J�J�J�J�J�J�J�J�J�J�J�J����J�J�J�J�J�Js�2A�A�A�patterns�returnc'�K�tddg|���}|j������}|D]}|V��dS)N�rpmz-qa)r�stdout�strip�
splitlines)r�result�lines�lines    r
rr!s`����
�%��*��*�
+�
+�F��M���!�!�,�,�.�.�E������
�
�
�
��rN)r)�concurrent.futuresr�typingr�clconfigurerr�clconfigure.packagesrr�intr
�strrrrr
�<module>r's���2�1�1�1�1�1�������!�!�!�!�!�!�!�!�0�0�0�0�0�0������U�V�V�J�J�s�J�J�J�W�V�J������
������r

Hacked By AnonymousFox1.0, Coded By AnonymousFox