| Server IP : 172.67.131.151 / Your IP : 172.71.28.164 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 : /lib/python3/dist-packages/DistUpgrade/__pycache__/ |
Upload File : |
U
�@FV9� � @ s� d dl mZ d dlZd dlmZ d dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZd dlZd dlZd dlZd dlZd dlmZmZ dejkr�ej�dd� ej�dd� G d d
� d
e�ZG dd� de�ZdS )
� )�print_functionN)�FetchFailedException)�BytesIO�openZAPT_CLONE_DEBUG_RESOLVERzDebug::pkgProblemResolver�1zDebug::pkgDepCache::AutoInstallc @ sF e Zd ZdZdZdd� Zdd� Zddd �Zd
d� Zdd
� Z dd� Z
dS )�LowLevelCommandszN calls to the lowlevel operations to install debs
or repack a deb
z/usr/bin/dpkg-repackc C sF |sdS ddg}|dkr0|� dd� |� d|� t�|| �}|dkS )NTZdpkgz-i�/r �chroot� )�insert�
subprocess�call)�selfZdebfiles� targetdirZinstall_cmd�ret� r �7/usr/lib/python3/dist-packages/DistUpgrade/apt_clone.py�install_debs2 s zLowLevelCommands.install_debsc C sh t j�| j�std| j ��| jg}t �� dksLt j�d�s@dS ddg| }tj||g |d�}|dkS )z$ dpkg-repack pkgname into targetdir z
no '%s' foundr z/usr/bin/fakerootNZfakerootz-u)�cwd)�os�path�exists�dpkg_repack�IOError�getuidr r
)r �pkgnamer Z
repack_cmdr r r r �
repack_deb<