%PDF- %PDF-
Direktori : /lib/python3/dist-packages/apport/packaging_impl/__pycache__/ |
Current File : //lib/python3/dist-packages/apport/packaging_impl/__pycache__/rpm.cpython-312.pyc |
� �!f�, � �R � d Z ddlZddlZddlZddlZddlZ G d� d� Z e� Zy)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 � � e Zd ZdZdZd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Z dd�Z ed � � Zd� Zd� Zdd�Zd� Zd� Zd� Zed� � Zed� � Zed� � Zy)�RPMPackageInfozcPartial apport.PackageInfo class implementation for RPM, as found in Fedora, RHEL, CentOS, etc.� c �D � t j � | _ d | _ y )N)�rpm�TransactionSet�ts�_mirror)�selfs �;/usr/lib/python3/dist-packages/apport/packaging_impl/rpm.py�__init__zRPMPackageInfo.__init__. s � ��$�$�&������ c � � | j |� }|�t �|d s |d � d|d � �S |d r|d sy|d � d|d � d|d � �S )z*Return the installed version of a package.N�e�v�-�r�:)�_get_header� ValueError�r �package�hdrs r �get_versionzRPMPackageInfo.get_version2 sp � ����w�'���;����3�x��#�h�Z�q��S�� �+�+��3�x�s�3�x���c�(��1�S��X�J�a��C��z�2�2r c � � t d� �)z1Return the latest available version of a package.�Emethod must be implemented by distro-specific RPMPackageInfo subclass��NotImplementedError)r r s r �get_available_versionz$RPMPackageInfo.get_available_version>