| 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
B��]� � @ s� d dl mZmZ d dl mZ d dlZd dlZd dlZd dl Z dZ
G dd� de�Zedkr�ed�Z
ee
�d d
�� ee
�d d�� ee
�dd
�� ee
�d dd�� ee
�d dd�� ee
�d dd�� dS )� )�
NoOptionError�NoSectionError)�ConfigParserNz&/etc/update-manager/release-upgrades.dc @ s. e Zd Zddd�Zdd� Zdd� Zd d
� ZdS )�DistUpgradeConfig�DistUpgrade.cfgNc C s� t �| � tjdddgtjdd��� d �� }|| _tj �
||�}tj �|d | �rb|d| 7 }g | _|r�t
�
|d �D ]}| j�|� qz| j|g7 _|d kr�t}|d k r�t
�
|d �D ]}| j�|� q�| �| j� d S ) NZlsb_releasez-cz-sT)�stdoutZuniversal_newlinesr �.z/*.cfg)�SafeConfigParser�__init__�
subprocess�Popen�PIPEZcommunicate�strip�datadir�os�path�join�existsZconfig_files�glob�append�CONFIG_OVERRIDE_DIR�read)�selfr �nameZoverride_dirZdefaults_dirZfrom_releaseZmaincfgZcfg� r �E/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeConfigParser.pyr
"