| Server IP : 159.223.102.202 / Your IP : 216.73.216.189 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/uaclient/__pycache__/ |
Upload File : |
�
|f� � � � d dl Zd dlZd dlZd dlZd dlZd dlmZmZm Z d dl
mZmZm
Z
mZmZmZ dZg d�ZdZdZdZd Z ej. � Z ej2 ej4 e� � Z ed
defdefd
efdefdefg� Zdefd�Z defd�Z! d#de e de e de ee" ddfd�Z# d$dede ee" ddfd�Z$dede e fd�Z%dee fd�Z&d� Z'd� Z( d%dede e defd �Z)defd!�Z*dedefd"�Z+y)&� N)�List�
NamedTuple�Optional)�apt�event_logger�
exceptions�messages�system�utilz
/usr/bin/snap)g �?g �?g @z
proxy.httpzproxy.httpsz/run/snapd.socketz/v2/snaps/{}�SnapPackage�name�version�revision�channel� publisher�returnc �. � dt j � v S )z(Returns whether or not snap is installed�snapd)r �get_installed_packages_names� � �//usr/lib/python3/dist-packages/uaclient/snap.py�is_snapd_installedr ! s � ��c�6�6�8�8�8r c �6 � t d� t � D � � S )z3Returns whether or not snapd is installed as a snapc 3 �: K � | ] }|j d k( �� � y�w)r N�r
)�.0�snaps r � <genexpr>z/is_snapd_installed_as_a_snap.<locals>.<genexpr>( s � �� �G��� � �W�$�G�s �)�any�get_installed_snapsr r r �is_snapd_installed_as_a_snapr"