403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/apport/packaging_impl/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/apport/packaging_impl/__pycache__/rpm.cpython-314.pyc
+
e��iU.��T�Rt^RIt^RIt^RIt^RIt^RIt!RR4t]!4tR#)z�A partial apport.PackageInfo class implementation for RPM.

Used as a base class for Fedora, RHEL, openSUSE, SUSE Linux, and many other
distributions.
Nc�~a�]tRt^#toRtR&tV3RlRltV3RlRltV3RlRltV3RlR	lt	V3R
lRlt
V3RlR
ltV3RlRltV3RlRlt
R'V3RlRllt]V3RlRl4tV3RlRltV3RlRltR(V3RlRlltV3RlRltV3RlR ltR!t]R"4t]R#4t]R$4tR%tVtR#))�RPMPackageInfoz_Partial apport.PackageInfo class implementation for RPM, as
found in Fedora, RHEL, CentOS, etc.c�<�V^8�dQhRR/#)��returnN�)�format�
__classdict__s"��;/usr/lib/python3/dist-packages/apport/packaging_impl/rpm.py�__annotate__�RPMPackageInfo.__annotate__+s���(�(�$�(�c�H�\P!4VnRVnR#)N)�rpm�TransactionSet�ts�_mirror)�selfs&r
�__init__�RPMPackageInfo.__init__+s���$�$�&���#'��r
c�&<�V^8�dQhRS[RS[/#�r�packager��str)rr	s"�r
rr/s���
3�
3�3�
3�3�
3r
c�*�VPV4pVf\RVR24hVR,'gVR,RVR,2#VR,'dVR,'g\RVR24hVR,RVR,RVR,2#)	z*Return the installed version of a package.zpackage z does not exist�e�v�-�rz misses version information�:)�_get_header�
ValueError�rr�hdrs&& r
�get_version�RPMPackageInfo.get_version/s������w�'���;��x��y��@�A�A��3�x�x��#�h�Z�q��S��
�+�+��3�x�x�s�3�x�x��x��y�0K�L�M�M��c�(��1�S��X�J�a��C��z�2�2r
c�&<�V^8�dQhRS[RS[/#rr)rr	s"�r
rr;s���
�
�S�
�S�
r
c��\R4h)z1Return the latest available version of a package.�Emethod must be implemented by distro-specific RPMPackageInfo subclass��NotImplementedError)rrs&&r
�get_available_version�$RPMPackageInfo.get_available_version;s��"�S�
�	
r
c�6<�V^8�dQhRS[RS[S[,/#r�r�list)rr	s"�r
rrBs��������S�	�r
c�x�VPV4p.pVR,F�pVPR4'gVPR4'dK3V^,R8XdVPRV4pMVPRV4pVF-pVPV4pWs9gKVP	V4K/	K�	V#)z/Return a list of packages a package depends on.�requires�rpmlibzuname(�/�	basenames�provides)r!�
startswith�_get_headers_by_tag�_make_envra_from_header�append)rrr$�reqsr�	req_heads�rh�rh_envras&&      r
�get_dependencies�RPMPackageInfo.get_dependenciesBs������w�'�����Z���A��|�|�H�%�%����h�)?�)?����t�s�{� �4�4�[�!�D�	� �4�4�Z��C�	����7�7��;���'��K�K��)� �!��r
c�&<�V^8�dQhRS[RS[/#rr)rr	s"�r
rrTs��� � �#� �#� r
c�6�VPV4pVR,#)z-Return the source package name for a package.�	sourcerpm�r!r#s&& r
�
get_source�RPMPackageInfo.get_sourceTs�����w�'���;��r
c�&<�V^8�dQhRS[RS[/#rr)rr	s"�r
rrYs���	�	��	��	r
c�6�VPV4pVR,#)z�Return the architecture of a package.

This might differ on multiarch architectures (e. g.  an i386 Firefox
package on a x86_64 system).
�archrDr#s&& r
�get_architecture�RPMPackageInfo.get_architectureYs�����w�'���6�{�r
c�6<�V^8�dQhRS[RS[S[,/#rr/)rr	s"�r
rrds��������c��r
c���VPV4p.p\VR,VR,4F4wrE\P!V4'dK#VP	V4K6	V#)z*Return list of files shipped by a package.�	filenames�	filemodes)r!�zip�stat�S_ISDIRr:)rrr$�files�f�modes&&    r
�	get_files�RPMPackageInfo.get_filesdsU�����w�'�����3�{�+�S��-=�>�G�A��<�<��%�%����Q��?��r
c�6<�V^8�dQhRS[RS[S[,/#rr/)rr	s"�r
rrms�����#��$�s�)�r
c��VPV4pVR,pVR,pVR,p.p\V4F�wrxWW,'gK\P!V\P4'gKB\P
!V4p	\
P!V	P4'gK�WG,V	P8XdK�VPW�V,4'dK�VPV4K�	V#)z/Return list of all modified files of a package.rN�
filemtimes�filemd5s)r!�	enumerate�os�access�R_OKrQ�S_ISREG�st_mode�st_mtime�	_checkmd5r:)
rrr$rS�mtimes�md5s�modified�i�filename�ss
&&        r
�get_modified_files�!RPMPackageInfo.get_modified_filesms������w�'���K� ���\�"���:�����$�U�+�K�A��7�7���9�9�X�r�w�w�/�/������!�A��<�<��	�	�*�*���y�A�J�J�&���>�>�(��G�4�4�����)�!,�$�r
Nc
�v<�V^8�dQhRS[RS[RS[R,RS[R,RS[R,RS[R,/#)r�file�uninstalled�map_cachedirN�releaserIr�r�bool)rr	s"�r
rr�sW���
�
��
��
��D�j�	
�
�t��
��D�j�

�

�t��
r
c��\R4h)a(Return the package a file belongs to.

Return None if the file is not shipped by any package.

If uninstalled is True, this will also find files of uninstalled
packages; this is very expensive, though, and needs network access and
lots of CPU and I/O resources. In this case, map_cachedir can be set to
an existing directory which will be used to permanently store the
downloaded maps. If it is not set, a temporary directory will be used.
Also, release and arch can be set to a foreign release/architecture
instead of the one from the current system.
r)r*)rrmrnrorprIs&&&&&&r
�get_file_package�RPMPackageInfo.get_file_package�s��,"�S�
�	
r
c� <�V^8�dQhRS[/#)rrr)rr	s"�r
rr�s���
�
�S�
r
c��\P!.ROR\PRR7pVPP	4pV#)z[Return the architecture of the system, in the notation used by the
particular distribution.T)�check�stdout�text)rz--evalz%_target_cpu)�
subprocess�run�PIPEry�strip)�rpmarchrIs  r
�get_system_architecture�&RPMPackageInfo.get_system_architecture�s;���.�.�-���?�?��	
���~�~�#�#�%���r
c�&<�V^8�dQhRS[RS[/#rrq)rr	s"�r
rr�s��������r
c��VP'g\R4hVPV4pV'gR#VR,'d2VR,R,PR4pW0P9dR#R#)zYCheck if a package is a genuine distro package (True) or comes from
a third-party source.z0Subclass the RPM implementation for your distro!F�siggpg:�
�N�hexT)�official_keylistr+r!�encode)rrr$�keyids&&  r
�is_distro_package� RPMPackageInfo.is_distro_package�sn���$�$�$�%�B��
����w�'�����x�=�=���M�%�(�/�/��6�E��-�-�-��r
c�$<�V^8�dQhRS[RR/#)r�urlrNr)rr	s"�r
rr�s�����c��d�r
c��WnR#)z�Explicitly set a distribution mirror URL for operations that need to
fetch distribution files/packages from the network.

By default, the mirror will be read from the system configuration
files.
N)r)rr�s&&r
�
set_mirror�RPMPackageInfo.set_mirror�s	���r
c�b<�V^8�dQhRS[RS[RS[R,RS[R,RS[R,/#)r�
srcpackage�
output_dir�versionN�sandboxrr)rr	s"�r
rr�sI���
�
��
��
��t��	
�
�t��
�

�t��

r
c��\R4h)asDownload source package and unpack it into output_dir.

This also has to care about applying patches etc., so that output_dir
will eventually contain the actually compiled source. output_dir needs
to exist and should be empty.

If version is given, this particular version will be retrieved.
Otherwise this will fetch the latest available version.

If sandbox is given, that sandbox is used to download the source
package, otherwise it uses the system configuration.

Return the directory that contains the actual source root directory
(which might be a subdirectory of output_dir). Return None if the
source is not available.
r)r*)rr�r�r�r�s&&&&&r
�get_source_tree�RPMPackageInfo.get_source_tree�s��0"�S�
�	
r
c�,<�V^8�dQhRS[RS[RS[/#)r�ver1�ver2r)r�int)rr	s"�r
rr�s"���
�
�S�
��
��
r
c��\R4h)zdCompare two package versions.

Return -1 for ver < ver2, 0 for ver1 == ver2, and 1 for ver1 > ver2.
r)r*)rr�r�s&&&r
�compare_versions�RPMPackageInfo.compare_versions�s��"�S�
�	
r
c�6<�V^8�dQhRS[RS[S[,/#)r�nameglobrr/)rr	s"�r
rr�s���*�*�#�*�$�s�)�*r
c��\R4h)z2Return known package names which match given glob.�TODOr*)rr�s&&r
�package_name_glob� RPMPackageInfo.package_name_glob�s
��!�&�)�)r
c��VPPW4pVP4^8Xd\RVRV24hV#)zIGet a list of RPM headers by doing dbMatch on the given tag and
argument.zCould not find package with z: )r�dbMatch�countr")r�tag�arg�matchess&&& r
r8�"RPMPackageInfo._get_headers_by_tagsB���'�'�/�/�#�+���=�=�?�a���;�C�5��3�%�H�I�I��r
c�"�Tp\V4pV^8�df\PPRV4p\	V4p\V4^8�dV^,pM V^\V4^,
pV^,
pKlV^8Xd\RV24hX#)z0Get the RPM header that matches the given ENVRA.�namez!No headers found for this envra: )�len�implrr�r0r")�envra�querystr�qlen�mi�hdrs�hs&     r
r!�RPMPackageInfo._get_header
s������5�z���Q�h��������2�B���8�D��4�y�1�}�
��G��� ��C��M�A�$5�6�H��!�8�D��1�9��@���H�I�I��r
c��VR,RVR,RVR,RVR,2pVR,'dVR,RV2pV#TpV#)	z,Generate an ENVRA string from an rpm header.�nrrr�.rIrr r)r��nvrar�s&  r
r9�&RPMPackageInfo._make_envra_from_header"s`���C�&���1�S�6�(�!�A�c�F�8�1�Q�v�Y�K�8���S�6�6���v�h�a��v�&�E����E��r
c���\P!4p\VRR7;_uu_4pVP4pRRR4VP	X4WP48H# +'giL3;i)zCheck a file's md5sum.zutf-8)�encodingN)�hashlib�md5�open�read�update�	hexdigest)rh�filemd5�m�md5_file�datas&&   r
rc�RPMPackageInfo._checkmd5,sQ��
�K�K�M��
�(�W�
-�
-���=�=�?�D�.�	������+�+�-�'�'�.�
-�s�A'�'A7	)rrr)FNNN)NN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�rr%r,r?rErJrVrjrt�staticmethodr�r�r�r�r�r�r8r!r9rc�__static_attributes__�__classdictcell__)r	s@r
rr#s�����+�
��(�(�
3�
3�
�
���$ � �
	�	�����:
�
�4�
��
���(��
�
�8
�
�*�*������.�����(��(r
r)r�r�r]rQr{rrr�rr
r
�<module>r�s4���0�	����P(�P(�f��r

Youez - 2016 - github.com/yon3zu
LinuXploit