§ ;Š»j% ã óˆ — d dl Z d dlmZ d dlmZ d dlZd dlmZmZm Z m Z d dlmZ G d„ de¦ « Z G d„ d ¦ « ZdS ) é N)Úsleep)ÚDict)Úis_testing_enabled_repoÚget_cl_versionÚ is_ubuntuÚget_os_version)ÚFormattedExceptionc ó ‡ — e Zd Zdˆ fd„ Zˆ xZS )ÚGroupInfoReaderErrorNc ó^ •— |€d}t ¦ « |d|i|dœ¦ « d S )Nz”Encountered an error while getting the remote available groups info. Try again later. If the same problem occurs again - contact CloudLinux support.Úreason)ÚmessageÚcontextÚdetails)ÚsuperÚ__init__)Úselfr r r Ú __class__s €úš/builddir/build/BUILDROOT/alt-python27-cllib-3.4.44-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/group_info_reader.pyr zGroupInfoReaderError.__init__ sS ø€ ؈?ðbð õ ‰Œ×ÒØØ &Ð)Øð ð ñ ô ð ð ð ó )NN)Ú__name__Ú __module__Ú__qualname__r Ú __classcell__)r s @r r r s= ø€ € € € € ð ð ð ð ð ð ð ð ð ð r r c óz — e Zd ZdZdZdZdZdZed„ ¦ « Z ed„ ¦ « Z ed„ ¦ « Zed„ ¦ « ZdS ) ÚGroupInfoReaderaZ The purpose of this class is to get remote yum info about available groups: 1. alt-php 2. alt-nodejs 3. alt-ruby 4. alt-python There we get special url with json which depends on machine features: cl version: 6, 7, 6 hybrid architecture: x84_64, i386 enabled testing repositories status: beta, stable Nz"https://repo.cloudlinux.com/other/z.https://repo.cloudlinux.com/cloudlinux-ubuntu/c óP — | j €| ¦ « | _ | j S )z"Get url with available groups json)Ú GROUP_URLÚ_get_group_url)Úclss r Ú group_urlzGroupInfoReader.group_url4 s' € ð Œ=Ð Ø×.Ò.Ñ0Ô0ˆCŒMØŒ}Ðr c ó† — t ¦ « r7t ¦ « \ }}| dd¦ « }d|› d�}| j |z S t j ¦ « }|dk rdn|}t ¦ « rdnd}t ¦ « }|€d S | d d¦ « }d d||d g¦ « }| j |z |z S )aŠ Final url example for CloudLinux: https://repo.cloudlinux.com/other/cl6/package-info.x86_64.stable.json Final url example for Ubuntu: https://repo.cloudlinux.com/cloudlinux-ubuntu/package-info.20_04.json for cl6, arch x86_64 and disabled testing: stable :return: string with the result url or None if the CL version cannot be identified ú.Ú_z package-info.z.jsonÚx86_64Úi386ÚbetaÚstableNÚcl7hÚcl7z /package-infoÚjson) r r ÚreplaceÚUBUNTU_BASEÚplatformÚmachiner r ÚjoinÚCL_BASE)r r$ Úubuntu_versionÚsuffixÚarchÚrepoÚ cl_versions r r zGroupInfoReader._get_group_url<