__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
3
�Z�i� � @ s~ d Z ddlZddlZddlZddlmZ ddlmZ ejddd�Z e
e d�sTe je _e jZd d
� Z
dd� Zd
d� Zdd� ZdS )zutility functions for up2date� N)�config)�getPlatformzrhn-client-toolsT)Zfallback�ugettextc C s6 t j� } | d rt| d �S t� dkr.tj� S tj� S )z3
Returns the version of redhat-release rpm
ZversionOverride�deb)r ZinitUp2dateConfig�strr �distroZcodenameZ
major_version)Zcfg� r �"/usr/lib/python3.6/up2dateUtils.py�
getVersion s
r
c C s t � dkrdS dS )z(
Returns the name of the system
r ZUbuntuZ
CloudLinux)r r r r r �getOSRelease# s
r c C sz t jdt j�r@tdd�} | j� j� }ddi}||kr<|| }|S t j� d }t� dkrv|dkrbd
}|dkrnd}|d
7 }|S )Nz/etc/rpm/platform�rzia32e-redhat-linuxzx86_64-redhat-linux� r �i486�i586�i686Zi386Zx86_64�amd64z
-debian-linux)r r r )�os�access�R_OK�open�read�strip�unamer )�fd�platform�replaceZarchr r r �getArch, s
r c C s dS )Nz03.0.3-1.module_el8.10.0+7020+fd2ced8d.cloudlinuxr r r r r �versionA s r )�__doc__r �gettextr Zup2date_clientr Zup2date_client.pkgplatformr Ztranslation�t�hasattrr �_r
r r r r r r r �<module> s