File: //lib/python3/dist-packages/uaclient/__pycache__/apt.cpython-312.pyc
�
nHJe� � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZmZ d dl
mZmZmZmZmZmZmZ d dlZd dlmZ d dlmZmZmZmZmZmZ d dlm Z dZ!dZ"d Z#d
Z$dZ%dZ&d
Z'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1ejd jg e d� ejd jg e d� gejd jg e d� ejd jg e d� gd�Z4g d�Z5 ejl � Z7 ejp ejr e:� � Z;ejx G d� dejz � � Z> ed d!e?fd"e?fd#e?fg� Z@d$� ZAeAd%e?d&e?fd'�� ZBd(� ZCd)e?d*ee? fd+�ZD djd,ee? d-ee? d.eee?e?f d*e?fd/�ZE ed�0� djd-ee? d.eee?e?f d*e?fd1�� ZF G d2� d3� ZGd4� ZHd5� ZId6e?d*ee? fd7�ZJ dkd6e?d8eKd*ee? fd9�ZL dld.eee?e?f d*e?fd:�ZM ej� ej� ej� fe5� d;e?fd<�� ZQ djd=ee? d>eee? d.eee?e?f d*e?fd?�ZRd@e?d*eej� fdA�ZT dldBej� dCee? d*eej� fdD�ZVdEe?dFe?dGe?dHee? dIe?d*dfdJ�ZWdK� ZXdL� ZY dldEe?dFe?dIee? d*dfdM�ZZdN� Z[dO� Z\dP� Z]dQ� Z^ddR�dS�Z_dTe?d*eKfdU�Z`d*ee@ fdV�ZadkdWeKd*ee? fdX�Zbdde>j� fdYee? dZee? d[ee> d*dfd\�Zdd*eee fd]�Zfd*eej fd^�Zgd_� Zhdmd`�Zidaee? dbe?fdc�Zjdaee? dbe?fdd�Zkdaee? fde�Zldf� Zmdg� Zndhee? d*ee?ee?ee? f f fdi�Zoy)n� N)� lru_cache�wraps)�Dict�Iterable�List�
NamedTuple�Optional�Set�Union)�AcquireProgress)�event_logger�
exceptions�gpg�messages�system�util)�ESM_APT_ROOTDIRg N@z # ubuntu-advantage-toolszDir::Etc::netrc/zDir::Etc::netrcparts/zDir::State::lists/a� /*
* Autogenerated by ubuntu-advantage-tools
* Do not edit this file directly
*
* To change what ubuntu-advantage-tools sets, use the `pro config set`
* or the `pro config unset` commands to set/unset either:
* global_apt_http_proxy and global_apt_https_proxy
* for a global apt proxy
* or
* ua_apt_http_proxy and ua_apt_https_proxy
* for an apt proxy that only applies to Ubuntu Pro related repos.
*/
z$Acquire::http::Proxy "{proxy_url}";
z%Acquire::https::Proxy "{proxy_url}";
z4Acquire::http::Proxy::esm.ubuntu.com "{proxy_url}";
z5Acquire::https::Proxy::esm.ubuntu.com "{proxy_url}";
z/etc/apt/trusted.gpg.d/z/usr/share/keyringsz/usr/lib/apt/methods/httpsz /usr/sbin/update-ca-certificatesz//etc/apt/apt.conf.d/90ubuntu-advantage-aptproxyz*/var/lib/apt/periodic/update-success-stampaL # Written by ubuntu-advantage-tools
deb https://esm.ubuntu.com/{name}/ubuntu {series}-{name}-security main
# deb-src https://esm.ubuntu.com/{name}/ubuntu {series}-{name}-security main
deb https://esm.ubuntu.com/{name}/ubuntu {series}-{name}-updates main
# deb-src https://esm.ubuntu.com/{name}/ubuntu {series}-{name}-updates main
zetc/apt/sources.listzvar/lib/dpkg/statuszvar/cache/apt/archives/partialzvar/lib/apt/lists/partial)�files�folders)g �?g @g $@c �( � e Zd Z e� Z e� Zy)�
AptProxyScopeN)�__name__�
__module__�__qualname__�object�GLOBAL�UACLIENT� � �./usr/lib/python3/dist-packages/uaclient/apt.pyr r W s � �
�X�F��x�Hr r �InstalledAptPackage�name�version�archc �. � � t � � � fd�� }|S )z*Decorator ensuring apt_pkg is initialized.c � �� t j j d� dk( rt j � �| i |��S )N�Dir� )�apt_pkg�config�get�init)�args�kwargs�fs �r �new_fz"ensure_apt_pkg_init.<locals>.new_fe s5 �� � �>�>���e�$��*��L�L�N��$�!�&�!�!r )r )r/ r0 s ` r �ensure_apt_pkg_initr1 b s"