%PDF- %PDF-
Direktori : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Current File : //lib/python3/dist-packages/DistUpgrade/__pycache__/apt_clone.cpython-312.pyc |
� 9m�e� � � � d dl mZ d dlZd dlmZ d dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlmZmZ de j0 v r8ej2 j5 dd� ej2 j5 dd� G d � d e� Z G d� de� Zy# e$ r dZY ��w xY w) � )�print_functionN)�FetchFailedException)�BytesIO�open�APT_CLONE_DEBUG_RESOLVERzDebug::pkgProblemResolver�1zDebug::pkgDepCache::AutoInstallc �: � e Zd ZdZdZd� Zd� Zd d�Zd� Zd� Z d � Z y)�LowLevelCommandszN calls to the lowlevel operations to install debs or repack a deb z/usr/bin/dpkg-repackc � � |syddg}|dk7 r$|j dd� |j d|� t j ||z � }|dk( S )NT�dpkgz-i�/r �chroot� )�insert� subprocess�call)�self�debfiles� targetdir�install_cmd�rets �7/usr/lib/python3/dist-packages/DistUpgrade/apt_clone.py�install_debszLowLevelCommands.install_debs6 sV � ����t�n��������q�(�+����q�)�,��o�o�k�H�4�5���q��� c �Z � t j j | j � st d| j z � �| j g}t j � dk( s't j j d� syddg|z }t j ||gz |�� }|dk( S )z$ dpkg-repack pkgname into targetdir z no '%s' foundr z/usr/bin/fakerootN�fakerootz-u)�cwd)�os�path�exists�dpkg_repack�IOError�getuidr r )r �pkgnamer � repack_cmdr s r � repack_debzLowLevelCommands.repack_deb@ s� � ��w�w�~�~�d�.�.�/��/�D�,<�,<�<�=�=��&�&�'� ��y�y�{�a���7�7�>�>�"5�6��$�d�+�j�8�J��o�o�j�G�9�4�)�D���q��r Nc � � |�t rt j � d }|�t j d� }t j d||g� }|dk( S )N�CODENAMEzlsb_release --codename --short�debootstrapr )�lsb_release�get_distro_informationr � getoutputr )r r �distror s r r) zLowLevelCommands.debootstrapL sQ � ��>�k� �7�7�9�*�E�F��>��)�)�*J�K�F��o�o�}�f�i�@�A���q��r c �@ � t j dd|d|g� }|dk( S )Nzapt-keyz --keyring�addr �r r )r �fromkeyfile�intokeyfiler s r � merge_keyszLowLevelCommands.merge_keysT s* � ��o�o�y�+�{�$�k�3� 4���q��r c �>