| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /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<