o
    O6uf  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )ÚPackageManagerc                   @   s0   e Zd ZdZdZdZdZdZddgZdd	„ Z	d
S )ÚRpmPackageManagerz0Package Manager for RPM-based distributions
    z7rpm -qa --queryformat "%{NAME}|%{VERSION}|%{RELEASE}\n"zrpm -qfzrpm -qalzrpm -VÚ	debuginfoz-develc                 c   s:   � |  ¡ D ]}d|vrq| d¡\}}}|||fV  qd S )Nú|)Ú
splitlinesÚsplit)ÚselfÚpkg_listÚpkgÚnameÚversionÚrelease© r   úC/usr/lib/python3/dist-packages/sos/policies/package_managers/rpm.pyÚ_parse_pkg_list   s   €üz!RpmPackageManager._parse_pkg_listN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úquery_commandÚquery_path_commandÚfiles_commandÚverify_commandÚverify_filterr   r   r   r   r   r      s    r   N)Úsos.policies.package_managersr   r   r   r   r   r   Ú<module>   s   
