HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/softwareproperties/__pycache__/AptAuth.cpython-38.pyc
U

��dT�@s�ddlmZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ejZ
dd�ZeZed�ed�ed�ed	�ed
�Gdd�d�Z
dS)
�)�print_functionN)�PIPEcCs|S�N�)�err�</usr/lib/python3/dist-packages/softwareproperties/AptAuth.py�dummy$�rz;Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>z:Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>zBUbuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>zAUbuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>zBUbuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>c@s>eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�ZdS)�AptAuth�/c	Csf||_t��|_tj�|jd�|_t|jd��}|�	d|j�W5QRX|jtj
d<t�|j
�dS)Nzapt.conf�wz
DIR "%s";
Z
APT_CONFIG)�rootdir�tempfileZmkdtemp�tmpdir�os�path�joinZaptconf�open�write�environ�atexit�register�_cleanup_tmpdir)�selfr
�frrr�__init__/s
zAptAuth.__init__cCst�|j�dSr)�shutilZrmtreer)rrrrr8szAptAuth._cleanup_tmpdirc	Cs�dddddddg}g}tj|ttdd	�j}d
}|D]p}|�d�}|dd
krT|d}|ddkr�|d}tj�t|d���	�}|s�q2|�
d||t|�f�d
}q2|��|S)N�/usr/bin/apt-key�--quietZadvz
--with-colonsz--batchz--fixed-list-modez--list-keysT)�stdout�stderrZuniversal_newlines��:r)�pubZuid�	r#��z%s %s
%s)
�
subprocess�Popenrr�split�datetime�dateZ
fromtimestamp�intZ	isoformat�append�_�close)	r�cmd�res�p�name�lineZfields�keyZexpiryrrr�list;s"
zAptAuth.listcCs(dddd|g}tj|td�}|��dkS)Nrr�
--fakeroot�add�r r�r'r(r�wait)r�filenamer0r2rrrr8NszAptAuth.addcCs&ddddg}tj|td�}|��dkS)Nrrr7�updater9rr:)rr0r2rrrr=SszAptAuth.updatecCs(dddd|g}tj|td�}|��dkS)Nrrr7�rmr9rr:)rr5r0r2rrrr>Xsz
AptAuth.rmN)r)	�__name__�
__module__�__qualname__rrr6r8r=r>rrrrr
.s
	r
)Z
__future__rrr*�gettextrrr'rrr.rZN_r
rrrr�<module>s"