%PDF- %PDF-
Direktori : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/DistUpgradeController.cpython-312.pyc |
� 9_f�� � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z d dlmZ d dlmZ ddlmZ ddlmZmZmZmZmZmZmZmZmZ d dlm Z d dl!m"Z" dd l#m$Z$ dd l%m&Z& ddl'm(Z( ddl)m)Z) d d l*m+Z+ d dl*m,Z, e+jZ e,_- d dl.m/Z/m0Z0m1Z1 d dl.m2Z2 dZ3ddl5m6Z6m7Z7 ddl8m9Z: ddl8m;Z; d dl9Z9ddl%m<Z<m=Z=m>Z> ddl?m@Z@ dZAd� ZBd� ZCd� ZD G d� deE� ZF G d� deG� ZHeId k( rSdd!lJmJZJ ej� ej� �"� eJ� ZM eHeM� ZNeNj� � eNj� � yy# e4$ r dZ3Y ��w xY w)#� N)� NoOptionError)�ConfigParser� )�get) �country_mirror�url_downloadable�check_and_fix_xbit�get_arch�iptables_active� inside_chroot�)get_string_with_no_auth_from_source_entry�is_child_of_process_name� inhibit_sleep)�Template)�urlsplit)�Step)�MyCache)�DistUpgradeConfig)�DistUpgradeQuirks)�distinfo)�sourceslist)�SourcesList�SourceEntry� is_mirror)�Deb822SourceEntryTF)� get_distro�NoDistroTemplateException)�gettext)�ngettext)�CacheExceptionDpkgInterrupted�CacheExceptionLockingFailed�NotEnoughFreeSpaceError)� run_apportz/var/run/reboot-requiredc �h � g d�} |j | � S # t $ r t |� dz cY S w xY w)zB key() function for sorted to ensure "correct" component ordering ��main� restricted�universe� multiverser )�index� ValueError�len)�a�orderings �C/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeController.py�component_ordering_keyr0 X s: � �?�H���~�~�a� � ��� � �8�}�Q����s � �1�1c � � g d�}| j d� d } |j |� S # t $ r t |� dz cY S w xY w)z> key() function for sorted to ensure "correct" suite ordering )� �updates�security� backports�proposed�-� r )� partitionr* r+ r, )r- r. �pockets r/ �suite_ordering_keyr; b sK � �C�H� �[�[�� �a� �F���~�~�f�%�%��� ��8�}�Q����s �+ �A�Ac �z � g }|j d� |j d� t | d� 5 }t j |j � � }d d d � |t dt � d� D �cg c] }|||dz j d� �� c}z }|j d� |S # 1 sw Y �XxY wc c}w )Nz$-----BEGIN PGP PUBLIC KEY BLOCK-----r2 �rbr �@ zus-asciiz"-----END PGP PUBLIC KEY BLOCK-----)�append�open�base64� b64encode�read�ranger, �decode)�keyring_path�out�f�data�is r/ �gpg_keyring_to_asciirK l s� � � �C��J�J�5�6��J�J�r�N� �l�D� !� *�Q��������)��*� �U�1�c�$�i��5L�M��D��1�R�4�L��� �+�M�M�C��J�J�3�4��J� *� *�� Ns �$B,�6B8�,B5c � � e Zd Zy)�NoBackportsFoundExceptionN)�__name__� __module__�__qualname__� � r/ rM rM { s � �rR rM c �h � e Zd ZdZd:d�Zd;d�Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zd� Z d<d �Zd� Zd� Zd� Zd� Zd� Zd� Zd<d�Zd� Zd� Zd� Zd� Zd=d�Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z!d!� Z"d"� Z#d#� Z$d$� Z%d%� Z&d&� Z'd'� Z(d(� Z)d)� Z*d*� Z+d+� Z,d,� Z-d-� Z.d.� Z/d/� Z0d>d0�Z1d>d1�Z2d2� Z3d3� Z4d4� Z5d5� Z6d6� Z7d7� Z8d8� Z9d9� Z:y)?�DistUpgradeControllerz3 this is the controller that does most of the work Nc �> � d}|d k( s|dk( r4t j � }t j j |d� }|| _ || _ t j d|� t j d� t j d|j j z � || _ | j j t d� � d | _ d | _ | j r| j j$ d k( rd| _ n| j j$ | _ t) |� | _ d| j* j- dd � z | _ | j* j1 d � | j* j3 d dt5 | j&