%PDF- %PDF-
| Direktori : /usr/share/hplip/installer/__pycache__/ |
| Current File : //usr/share/hplip/installer/__pycache__/pluginhandler.cpython-312.pyc |
�
= f�E � � � d dl Z d dlZd dlmZmZmZmZmZ d dl� d dl � d dl
� d dlmZ d dl
mZ d dlZd� ZdZd Z G d
� de� Zy# e$ r
d dlZd� ZY �w xY w)� N)�utils�tui�os_utils�
validation�password)�*)�configparser)�core_installc �H � t j | � j � S �N)�hashlib�sha1� hexdigest��ss �+/usr/share/hplip/installer/pluginhandler.py�get_checksumr # s � ��|�|�A��(�(�*�*� c �H � t j | � j � S r )�sha�newr r s r r r ) s � ��w�w�q�z�#�#�%�%r z/var/lib/hp/hplip.statez.https://developers.hp.com/sites/default/files/c � � e Zd Zej fd�Zd� Zd� Zd� Zdd�Z d� Z
d� Zdd �Ze
fd
�Zd� Zd� Zd
� Zd� Zd� Zd� Zy)�PluginHandlec � � || _ d| _ d| _ t | _ d| _ d| _ | j � | j � | j � y )N� )
�_PluginHandle__plugin_path�_PluginHandle__required_version�_PluginHandle__plugin_name�PLUGIN_NOT_INSTALLED�_PluginHandle__plugin_state� _PluginHandle__installed_version�_PluginHandle__plugin_conf_file� _PluginHandle__setPluginConfFile�_PluginHandle__setPluginVersion�_PluginHandle__readPluginStatus)�self�
pluginPaths r �__init__zPluginHandle.__init__3 sV � �'���"$������2���#%�� �"$���� � �"����!����!r c �f � t j j |dz � st j d|z � g S t j
� }t j |� t d� }|j d� }t j � }t j � }t j dd� }t j dd� }t j dd� } t j dd � }
t j dd
� }t j dd� }d}
t j dd
� }|| k7 r5t j |dz | dz � t j | dz d� t j"