File: //usr/lib/python3.6/site-packages/up2date_client/__pycache__/rhnPackageInfo.cpython-36.pyc
3
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 j� }|jdt| d � � |jdt| 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
�$/usr/lib/python3.6/rhnPackageInfo.py�logDeltaPackages s
r Nc C sV t j� }|jd� tjdd�}tj| d�}|jjdd�s@t |�}|j
jtj
� |� 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>