0x1949 Team - FAZEMRX - MANAGER
Edit File: packaging_impl.cpython-310.pyc
o U��fT � @ s( d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ ddl Z e �dde� ddlZzddlZddlmZmZmZ eeeef eZeZW n# ey| ddlmZmZ ddlmZ dd lmZmZ ddlZY nw ddlZdd lm Z G dd� de �Z!e!� Z"dS ) zyapport.PackageInfo class implementation for python-apt and dpkg. This is used on Debian and derivatives such as Ubuntu. � N)�closing�ignorezapt API not stable yet)�urlopen�quote�unquote)�URLError� HTTPError)r )r r )�PackageInfoc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd_d%d&�Zd'd(� Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Z 3 3d`d4d5�Zed6d7� �Zd8d9� Zd:d;� Z 3 $dad<d=�Z!d>d?� Z"d@dA� Z# 3 3 $dbdCdD�Z$dEdF� Z%edGdH� �Z&dIdJ� Z'edKdL� �Z(dMdN� Z)dOdP� Z*dQdR� Z+edSdT� �Z,edUdV� �Z-edWdX� �Z.dYdZ� Z/d3Z0d[d\� Z1d3Z2d]d^� Z3d3S )c�__AptDpkgPackageInfoz�Concrete apport.PackageInfo class implementation for python-apt and dpkg, as found on Debian and derivatives such as Ubuntu.c C sF d | _ d | _d | _d | _d | _d | _d | _d| _| jd | _d| _ d S )Nzhttps://api.launchpad.net/develz*/~%(user)s/+archive/%(distro)s/%(ppaname)sF) � _apt_cache�_sandbox_apt_cache�_sandbox_apt_cache_arch� _contents_dir�_mirror�_virtual_mapping_obj�_contents_mapping_obj�_launchpad_base�_ppa_archive_url�_contents_update��self� r �7/usr/lib/python3/dist-packages/apport/packaging_impl.py�__init__- s z__AptDpkgPackageInfo.__init__c C s4 z| j r t�| j � W d S W d S ty Y d S w )N)r �shutil�rmtree�AttributeErrorr r r r �__del__9 s ��z__AptDpkgPackageInfo.__del__c C sv | j d ur| j S tj�|d�}tj�|�r5t|d��}t�|�| _ W d � | j S 1 s-w Y | j S i | _ | j S )N�virtual_mapping.pickle�rb)r �os�path�join�exists�open�pickle�load�r � configdir�mapping_file�fpr r r �_virtual_mapping@ s ���z%__AptDpkgPackageInfo._virtual_mappingc C sZ t j�|d�}| jd ur+t|d��}t�| j|� W d � d S 1 s$w Y d S d S )Nr �wb)r r! r"