File: //lib/python3.9/site-packages/up2date_client/__pycache__/rhnPackageInfo.cpython-39.pyc
a
7
f' � @ sV d dl mZ d dl mZ d dl mZ d dl mZ dd� Zddd �Zd
d� Zdd
� ZdS )� )�up2dateAuth)�
up2dateLog)� rhnserver)�pkgUtilsc C s8 t �� }|�dt| d � � |�dt| d � � d S )Nz&Adding packages to package profile: %sZaddedz*Removing packages from package profile: %sZremoved)r �initLog�log_me�pprint_pkglist)Zpkgs�log� r
�A/usr/lib/python3.9/site-packages/up2date_client/rhnPackageInfo.py�logDeltaPackages s
�
�r Nc C sV t �� }|�d� tjdd�}tj| d�}|j�dd�s@t |�}|j
�t�
� |� dS )z; get a list of installed packages and send it to rhnServer zUpdating package profile� )ZgetArch)�timeoutz xmlrpc.packages.extended_profile� N)r r r r ZgetInstalledPackageListr Z RhnServerZcapabilitiesZ
hasCapability�convertPackagesFromHashToListZregistrationZupdate_packagesr ZgetSystemId)r r �packages�sr
r
r �updatePackageProfile s
r c C s>