Edit File: group_info_reader.cpython-311.pyc
� �e� � � � d dl mZ d dl mZ d dl mZ d dlmZ d dlZd dlmZ d dl Z d dl mZmZ d dl mZmZ d d lmZ G d � de� � Z G d� d � � ZdS )� )�absolute_import)�division)�print_function)�DictN)�sleep)�is_testing_enabled_repo�get_cl_version)� is_ubuntu�get_os_version)�FormattedExceptionc � � � e Zd Zd� fd� Z� xZS )�GroupInfoReaderErrorNc � �� |�d}t t | � � � t |t |�� � |�� � � � 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)�superr �__init__�dict)�selfr r r � __class__s ���/builddir/build/BUILDROOT/alt-python27-cllib-3.3.5-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/group_info_reader.pyr zGroupInfoReaderError.__init__ sh �� ��?�b� � �"�D�)�)�2�2����F�+�+�+�� � � � � � � � � )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_url: s'