| Server IP : 74.208.250.37 / Your IP : 216.73.216.114 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Upload File : |
�
�h � � � d dl mZmZ d dl mZ d dlZd dlZd dlZd dl Z dZ
G d� de� Zedk( r� ed� Z
ee
j d d
� � ee
j d d� � ee
j! dd
� � ee
j# d dd� � ee
j% d dd� � ee
j# d dd� � yy)� )�
NoOptionError�NoSectionError)�ConfigParserNz&/etc/update-manager/release-upgrades.dc �* � e Zd Z dd�Zd� Zd� Zd� Zy)�DistUpgradeConfigNc �� � t j | � t j g d�t j d�� j � d j
� }|| _ t j j ||� }t j j |dz |z � r|d|z z
}g | _ |r8t j |dz � D ] }| j j |� � | xj |gz
c_ |�t }|�8t j |dz � D ] }| j j |� � | j! | j � y )N)�lsb_releasez-cz-sT)�stdout�universal_newlinesr �.z/*.cfg)�SafeConfigParser�__init__�
subprocess�Popen�PIPE�communicate�strip�datadir�os�path�join�exists�config_files�glob�append�CONFIG_OVERRIDE_DIR�read)�selfr �name�override_dir�defaults_dir�from_release�maincfg�cfgs �E/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeConfigParser.pyr zDistUpgradeConfig.__init__"