<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
3
Zi                 @   s~   d Z ddlZddlZddlZddlmZ ddlmZ ejdddZ	e
e	dsTe	je	_e	jZd	d
 Zdd Zdd Zdd ZdS )zutility functions for up2date    N)config)getPlatformzrhn-client-toolsT)Zfallbackugettextc              C   s6   t j } | d rt| d S t dkr.tj S tj S )z3
    Returns the version of redhat-release rpm
    ZversionOverridedeb)r   ZinitUp2dateConfigstrr   distroZcodenameZmajor_version)Zcfg r   "/usr/lib/python3.6/up2dateUtils.py
getVersion   s    
r
   c               C   s   t  dkrdS dS )z(
    Returns the name of the system
    r   ZUbuntuZ
CloudLinux)r   r   r   r   r	   getOSRelease#   s    
r   c              C   sz   t jdt jr@tdd} | j j }ddi}||kr<|| }|S t j d }t dkrv|dkrbd
}|dkrnd}|d7 }|S )Nz/etc/rpm/platformrzia32e-redhat-linuxzx86_64-redhat-linux   r   i486i586i686Zi386Zx86_64amd64z-debian-linux)r   r   r   )osaccessR_OKopenreadstripunamer   )fdplatformreplaceZarchr   r   r	   getArch,   s    

r   c               C   s   dS )Nz03.0.3-1.module_el8.10.0+7020+fd2ced8d.cloudlinuxr   r   r   r   r	   versionA   s    r   )__doc__r   gettextr   Zup2date_clientr   Zup2date_client.pkgplatformr   Ztranslationthasattrr   _r
   r   r   r   r   r   r   r	   <module>   s   
	