403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/1/cwd/usr/lib/python3.12/site-packages/dnf-plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/1/cwd/usr/lib/python3.12/site-packages/dnf-plugins/__pycache__/builddep.cpython-312.pyc
�

?�(f}$����ddlmZddlmZddlmZmZddlZddlZddlZddl	Zddl
ZddlZddlZ
ddlZddlZddlZddlZej$j&Gd�dej(j*��Zy)�)�absolute_import)�unicode_literals)�_�loggerNc���eZdZdZdZee�Zed�Z�fd�Zd�Z	d�Z
ed��Zd�Z
d	�Zd
�Zed��Zd�Zd
�Zd�Zd�Z�xZS)�BuildDepCommand)�builddepz	build-depz3Install build dependencies for package or spec filez[PACKAGE|PACKAGE.spec]c���tt|�|�tjj
j
�|_g|_y�N)	�superr�__init__�dnf�rpm�transaction�initReadOnlyTransaction�_rpm_ts�tempdirs)�self�cli�	__class__s  ��9/usr/lib/python3.12/site-packages/dnf-plugins/builddep.pyr
zBuildDepCommand.__init__/s3���
�o�t�-�c�2��w�w�*�*�B�B�D�����
�c�P�|jD]}tj|��yr)r�shutil�rmtree)r�temp_dirs  r�__del__zBuildDepCommand.__del__4s���
�
�H��M�M�(�#�&rc��tjjj|�}|ddvr|jStj
j
�}tjd��}tjj|tjj|��}|jj|�t|d�}	|j|j j"j$||j'��	|j+�|S#t($r}�d}~wwxYw#|j+�wxYw)z�
        In case pkgspec is a remote URL, download it to a temporary location
        and use the temporary file instead.
        r)�file��
dnf_builddep_)�prefixzwb+N)r�pycomp�urlparse�path�libdnf�repo�
Downloader�tempfile�mkdtemp�os�join�basenamer�append�open�downloadURL�base�conf�_config�fileno�RuntimeError�close)r�pkgspec�location�
downloaderr�	temp_file�temp_fo�exs        r�_download_remote_filez%BuildDepCommand._download_remote_file8s���
�:�:�&�&�/�/��8���A�;�,�&��=�=� ��[�[�+�+�-�
��#�#�?�;���G�G�L�L��2�7�7�+;�+;�G�+D�E�	��
�
���X�&��y�%�(��	��"�"�4�9�9�>�>�#9�#9�7�G�N�N�DT�U�
�M�M�O����	�	���	��
�M�M�O�s$�?D(�(	D7�1D2�2D7�7D:�:Ec�X�d�}|jdddtd���|jddd	gd
|td���|jd
ddtd���|j�}|jddtd���|jddtd���y)Nc��|r|jdd�ng}t|�dkr#td�|z}tj|��|S)N��z&'%s' is not of the format 'MACRO EXPR')�split�lenr�argparse�ArgumentTypeError)�arg�arglist�msgs   r�	macro_defz0BuildDepCommand.set_argparser.<locals>.macro_defRsH��,/�c�i�i��a�(�R�G��7�|�a���@�A�C�G���0�0��5�5��Nr�packages�+�packagez"packages with builddeps to install)�nargs�metavar�helpz-Dz--definer.z'MACRO EXPR'z$define a macro for spec file parsing)�action�defaultrN�typerOz--skip-unavailable�
store_trueFz5skip build dependencies not available in repositories)rPrQrOz--specz)treat commandline arguments as spec files)rPrOz--srpmz)treat commandline arguments as source rpm)�add_argumentr�add_mutually_exclusive_group)�parserrI�ptypes   r�
set_argparserzBuildDepCommand.set_argparserPs���	�	���J�c�9�!"�#G�!H�	�	J����D�*�X�r�$2��!"�#I�!J�	�	L�	���0��u�!"�#Z�![�	�	]��3�3�5��
���8�L�!"�#N�!O�	�	Q�
���8�L�!"�#N�!O�	�	Qrc�T�|jjsd|j_yy)N�error)�opts�rpmverbosity)rs r�
pre_configurezBuildDepCommand.pre_configurefs ���y�y�%�%�%,�D�I�I�"�&rc��|jj}d|_d|_d|_d|_|jjs�|jjsw|jjD]]}|jd�r�|jd�r�'|jd�r�9|jjj�yyyy)NT�.src.rpmz
.nosrc.rpm�.spec)r�demands�available_repos�	resolving�	root_user�sack_activationr[�spec�srpmrJ�endswithr1�repos�enable_source_repos)rrar7s   r�	configurezBuildDepCommand.configurejs����(�(�"�"��"&��� ��� ���"&����	�	���$�)�)�.�.��9�9�-�-���(�(��4�"�+�+�L�9�"�+�+�G�4��I�I�O�O�7�7�9��.�#1�rc�h�tjjj|j�}|j
jD]}tj|d|d�� d}|j
jD]�}|j|�}	|j
jr|j|�n�|j
jr|j|�nh|jd�s|jd�r|j|�n4|jd�r|j|�n|j!|���|j
jD]}tj0|d��|r(tj"j%t-d	���y#tj"j$$rd}|j'�D]/}t)j*t-d�j/|���1t)j*|�d}Yd}~���d}~wwxYw)
Nrr@Fr_z	nosrc.rpmr`zRPM: {}Tz!Some packages could not be found.)r�yum�rpmtrans�RPMTransactionr1r[�definer�addMacrorJr=rg�	_src_depsrf�
_spec_depsrh�_remote_deps�
exceptions�Error�messagesrrZr�format�delMacro)r�rpmlog�macro�
pkg_errorsr7�e�lines       r�runzBuildDepCommand.runzs������!�!�0�0����;���Y�Y�%�%�E��L�L��q��5��8�,�&��
��y�y�)�)�G��0�0��9�G�
"��9�9�>�>��N�N�7�+��Y�Y�^�^��O�O�G�,��%�%�j�1�W�5E�5E�k�5R��N�N�7�+��%�%�g�.��O�O�G�,��%�%�g�.��*�(�Y�Y�%�%�E��L�L��q��"�&���.�.�&�&�q�)L�'M�N�N����>�>�'�'�
"�"�O�O�-�D��L�L��9��!4�!4�T�!:�;�.����Q��!�
��	
"�s�B8F0�0H1�
AH,�,H1c�(�|j�ddS)NrA)�DNEVR)�rpm_deps r�_rpm_dep2reldep_strz#BuildDepCommand._rpm_dep2reldep_str�s���}�}��q�r�"�"rc���tjj|jj�}|j|��|j
�}|sf|jd�rUtjj|jj�}|j|��|j
�}|sJ|jd�s9td�}tj||�|jjduS|rC|jj|�}|r&|D]!}tjj|��#|jjj!|d��y)	N)�provides�/)r�(z$No matching package to install: '%s'TF)�select�optional)r�selector�Selectorr1�sack�set�matches�
startswithrr�warningr[�skip_unavailable�_sltr_matches_installed�_msg_installed�_goal�install)r�
reldep_str�sltr�foundrH�already_instrLs       r�_installzBuildDepCommand._install�s���|�|�$�$�T�Y�Y�^�^�4�����*��%��������.�.�s�3��<�<�(�(������8�D��H�H�*�H�%��L�L�N�E��Z�2�2�3�7��:�;�C��N�N�3�
�+��9�9�-�-��5�5���9�9�<�<�T�B�L��+�G��H�H�+�+�G�4� ,��	�	�����t�e��<�rc���tj|tj�}	|jj	|�}tj|�tj|d�}d}|D]9}|j|�}|jd�r�&||j!|�z}�;|s*td�}	tjj|	��|j"j$rt'j(td��yy#t
j$rU}t|�dk(rtd�|z}tj|�tjj|��d}~wwxYw)Nzerror reading package headerz2Failed to open: '%s', not a valid source rpm file.�requirenameTzrpmlib(�Not all dependencies satisfiedzJWarning: -D or --define arguments have no meaning for source rpm packages.)r+r/�O_RDONLYr�hdrFromFdnorrZ�strrr6rrurv�dsr�r�r�r[rprr�)
r�src_fn�fd�hr}r��done�depr��errs
          rrrzBuildDepCommand._src_deps�s1��
�W�W�V�R�[�[�
)��	*����(�(��,�A�	�����
�V�V�A�}�
%�����C��1�1�#�6�J��$�$�Y�/���D�M�M�*�-�-�D�	���4�5�C��.�.�&�&�s�+�+��9�9����N�N�1�8�9�
:���%�y�y�	*��1�v�7�7��J�K�f�T���H�H�R�L��.�.�&�&�q�)�)��		*�s�D�E6�!AE1�1E6c��	tj|�}d}tj|jd�D]'}|j|�}||j|�z}�)|s*td�}tj
j
|��y#t$r4}td�||fz}tj
j
|��d}~wwxYw)Nz/Failed to open: '%s', not a valid spec file: %sT�requiresr�)rrf�
ValueErrorrrrurvr��sourceHeaderr�r�)	r�spec_fnrfr<rHr�r�r�r�s	         rrszBuildDepCommand._spec_deps�s���	,��8�8�G�$�D�
���6�6�$�+�+�Z�8�C��1�1�#�6�J��D�M�M�*�-�-�D�9���4�5�C��.�.�&�&�s�+�+����	,��E�F��R�J!�!�C��.�.�&�&�s�+�+��	,�s�B�	C
�/C�C
c���tjj|�j|jj
�j
d��}t|D�chc]}|j��c}�}|jj
j�j�j
||gzd��j�j�}|s+tjjtd�|z��d}|D]0}|j D]}||j#t%|��z}�!�2|s*td�}tjj|��ycc}w)N�src)�	arch__neq)�name�archzno package matched: %sTr�)r�subject�Subject�get_best_queryr1r��filter�list�source_name�query�	available�latestrrurvrr�r�r�)	rrLr��pkg�sourcenames�pkgsr��reqr�s	         rrtzBuildDepCommand._remote_deps�s*���K�K�'�'��0�?�?��	�	���(�(.����(?�	��y�A�y��C�O�O�y�A�B���y�y�~�~�#�#�%�/�/�1�8�8�!�W�I�-�U�9�<�<B�F�H�S�S�U�	
���.�.�&�&�q�)A�'B�W�'L�M�M����C��|�|����
�
�c�#�h�/�/��$����4�5�C��.�.�&�&�s�+�+���Bs�E*)�__name__�
__module__�__qualname__�aliasesrHr�summary�usager
rr=�staticmethodrXr]rkrr�r�rrrsrt�
__classcell__)rs@rrr's����(�G�
?�C���f�G�
�&�'�E��
$��0�Q��Q�*-�� O�B�#��#��4:�4,� ,rr)�
__future__rr�dnfpluginscorerrrDr�dnf.cli�dnf.exceptions�dnf.rpm.transaction�dnf.yum.rpmtrans�libdnf.repor&r+rrr)�plugin�register_commandr�Commandr�rr�<module>r�sa��,'�'�$��
������	�
�
�������J,�c�g�g�o�o�J,��J,r

Youez - 2016 - github.com/yon3zu
LinuXploit