📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 16:12:55
📂
/ (Root)
/
usr
/
lib
/
python3.6
/
site-packages
/
up2date_client
/
__pycache__
📍 /usr/lib/python3.6/site-packages/up2date_client/__pycache__
🔄 Refresh
✏️
Editing: up2dateUtils.cpython-36.pyc
Read Only
3 ��*j� � @ 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-2.module_el8.10.0+7072+83ec8341.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
💾 Save Changes
❌ Cancel