| Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/clsentry/__pycache__/utils.cpython-311.pyc |
�
^Se� � �H � d dl mZ d dl mZ d dl mZ d dlZd dlmZ dZd� ZdS )� )�absolute_import)�division)�print_functionN)�get_file_linesz/usr/share/cloudlinuxc � � t t j � t | � � � � }|r4|d � � � � dd� � d S dS # t t t f$ r Y dS w xY w)z
Get package version using rpm
or None if any error or package absent.
:type package: str
:rtype: str|None
r z.el� N)
r �os�path�join�PACKAGES_FILES_PATH�strip�split�OSError�IOError�
IndexError)�package�
file_liness ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.8-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clsentry/utils.py�get_pkg_versionr s� � ��#�B�G�L�L�1D�g�$N�$N�O�O�
�� <��a�=�&�&�(�(�.�.�u�a�8�8��;�;� <� <���W�j�)� � � ��t�t����s �A'A, �,B�B) �
__future__r r r r �clcommon.utilsr r r � � r �<module>r sw �� '� &� &� &� &� &� � � � � � � %� %� %� %� %� %� � � � � )� )� )� )� )� )�-� �
�
�
�
�
r