| Server IP : 172.67.131.151 / Your IP : 104.23.197.229 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Upload File : |
U
٪zc- � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
m
Z d dlm
Z
ddlmZmZmZ G dd� de�Zed kr�edd�Zed
e�dd� � dS )
� )�TemplateN)�gettext)�SourcesList� )�get_dist�url_downloadable�country_mirrorc @ s� e Zd ZdZdZdZdejkZdd� Z dd� Z
d d
� Zdd� Zd
d� Z
d"dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� ZdS )#�DistUpgradeFetcherCorez2 base class (without GUI) for the upgrade fetcher � http://archive.ubuntu.com/ubuntu�mainZDEBUG_UPDATE_MANAGERc C s || _ t� | _|| _g | _d S )N)�new_distr �current_dist_name� _progress�run_options)�selfr Zprogress� r �D/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherCore.py�__init__- s zDistUpgradeFetcherCore.__init__c C s | j rtj�|d � dS )z" helper to show debug information �
N)�DEBUG�sys�stderr�write)r �msgr r r �_debug4 s zDistUpgradeFetcherCore._debugc C s dS )NTr �r r r r �showReleaseNotes9 s z'DistUpgradeFetcherCore.showReleaseNotesc C s t |� t |� dS )z dummy implementation for error display, should be overwriten
by subclasses that want to more fancy method
F)�print)r Zsummary�messager r r �error<