| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/aptdaemon/__pycache__/ |
Upload File : |
o
��S� � @ s� d Z dZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZ e�d�Z
G dd� de�Zdd � Zed
krDe� dS dS )z�
Integration of debconf on the client side
Provides the DebconfProxy class which allows to run the debconf frontend
as normal user by connecting to the root running debconf through the
socket of the passthrough frontend.
)�DebconfProxy� N)�GLibzAptClient.DebconfProxyc @ sJ e Zd ZdZddd�Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dS )r z�The DebconfProxy class allows to run the debconf frontend
as normal user by connecting to the root debconf through the socket of the
passthrough frontend.
�gnomeNc C s� || _ d| _|du rtjdd�| _tj�| jd�| _ t�d| j � t � t j
t j�| _ | j �| j � || _
d| _d| _g | _dS )a Initialize a new DebconfProxy instance.
Keyword arguments:
frontend -- the to be used debconf frontend (defaults to gnome)
socket_path -- the path to the socket of the passthrough frontend.
Will be created if not specified
Nz
aptdaemon-)�prefixzdebconf.socketzdebconf socket: %s)�socket_path�temp_dir�tempfile�mkdtemp�os�path�join�log�debug�socket�AF_UNIX�SOCK_STREAM�bind�frontend�_listener_id�_active_conn�
_watch_ids)�selfr r � r �3/usr/lib/python3/dist-packages/aptdaemon/debconf.py�__init__2 s
zDebconfProxy.__init__c C s>