0x1949 Team - FAZEMRX - MANAGER
Edit File: distro.cpython-310.pyc
o 4��f�\ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlm Z G dd� de �Z G dd� de�ZG dd � d e�Z G d d� de�ZG dd � d e�Zdd� Zdd� ZG dd� d�Zddddg fdd�ZdS )� N)�ElementTree)�gettextc @ s e Zd ZdS )�NoDistroTemplateExceptionN)�__name__� __module__�__qualname__� r r �4/usr/lib/python3/dist-packages/DistUpgrade/distro.pyr % s r c @ sp e Zd Zg fdd�Zdd� Zddd�Zdd � Zd d� Z dd d�Zdd� Z dd� Z dd� Zdd� Zdd� Z dS )�Distributionc C s. || _ || _|| _|| _|| _d| _d| _dS )z2 Container for distribution specific informations �debzdeb-srcN)�id�codename�description�release�is_like�binary_type�source_type)�selfr r r r r r r r �__init__+ s zDistribution.__init__c C s� || _ d| _g | _g | _g | _g | _g | _g | _g | _g | _ d| _ g | _d| _d| _ d| _g | _| j jjD ]}| �|j�rH|j| jkrH|| _ nq5| jdu rXtd| j| jf ��g }g }g }g }| j jD ]�}|js�| �|j�r�|jr�|jjr�| �|jj�r�|j�d�r�|js�| j� |� |�!|j"� n[|j�d�r�|jr�| j� |� nK|j#| j$kr�|js�| j� |� |�!|j"� |� |j� n/|j#| j$kr�|jr�| j� |� n|j#| j%kr�|js�| j� |� n|j#| j%kr�|jr�| j� |� |j�s$|j| jj&v �r$|j�s|j#| j$k�r| j� |� qd|j�s|j#| j%k�r| j� |� qd| j� |� qdt'|�| _t'|�| _|�!|� |�!|� t'|�| _t'|�| _ | �(� dS )zf Find the corresponding template, main and child sources for the distribution NF� z7Error: could not find a distribution template for %s/%s�cdrom:))�sourceslist�source_template� child_sources�main_sources�disabled_sources� cdrom_sources�download_comps� enabled_comps�cdrom_comps� used_media�get_source_code�source_code_sources�default_server�main_server�nearest_server�used_servers�matcher� templates�is_codename�name�distributionr r r �list�invalid�dist�template�official�uri� startswith�disabled�append�extend�comps�typer r �children�set�get_mirrors)r r r/ �mediar6 r r �sourcer r r �get_sources7 s� � �� ����������� zDistribution.get_sourcesNc C s� | j j| _| jD ] }|�d�s| j�|� qt| j�dkr"| j| _ n| jd j | _ i | _d}tj �|�r�t|d�}t|dd�du rE|j|_|�d�}|D ]9}z|jd }W n tyc |jd }Y nw z|jd }W n tyy |jd }Y nw t�d|�| j|�� <