%PDF- %PDF-
Direktori : /usr/share/hplip/installer/__pycache__/ |
Current File : //usr/share/hplip/installer/__pycache__/dcheck.cpython-312.pyc |
� = fl) � �z � d dl Z d dlZ d dlZd dlZd dlmZmZ d dlZd dl� d dl m Z mZ d dlm Z ej dej � Z ej dej � Zd ZdZd ad ad � Zd!d�Zd"d�Zd#d �Zd� Zd� Zd� Zd� Zd� Zd� Zd$d�Z d%d�Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z*d� Z+d � Z,y)&� N)�Popen�PIPE)�*)�utils�services)� to_bytes_utf8z(\d+\.\d+\.\d+)z (\d+\.\d+)� � c �� � t j dt j j t j d� d� z d�� \ } a| dk7 rt j d� y y )Nz%s -p�ldconfigF�� log_outputr zldconfig failed.) r �run�os�path�join�which� ld_output�log�debug)�statuss �$/usr/share/hplip/installer/dcheck.py�update_ld_outputr / sQ � � � � �'�B�G�G�L�L����Z�9P�R\�,]�"]�jo�p��F�I� ��{�� � �$�%� � c �X � t j d| |fz � t j | � \ }}|dk7 rt j d� y|r� |j � d }t j |� t j |� } |j d� } t |� }t j d||fz � ||k rt j d� ||k\ S t j d � y # t $ r d}Y ��w xY w# t $ r d}Y �yw xY w# t $ r Y yw xY w)NzChecking: %s (min ver=%f)r � Not found!Fr r zVer=%f Min ver=%f�"Found, but newer version required.�Found.T)r r r r � splitlines� IndexError�ver_pat�search�group�AttributeError�float� ValueError)�cmd�min_verr �output�line� match_obj�ver�v_fs r � check_toolr. 7 s � ��I�I�)�S�'�N�:�;��Y�Y�s�^�N�F�F� ��{�� � �,���� ��(�(�*�1�-�� �I�I�d�O����t�,�I� ��o�o�a�(�� &��C�j�� � � �-��g��>�?���=��I�I�B�C��g�~�%��I�I�h����- � ��� �� "� ��� �� � �� �s6 �C; �D �!D �;D �D �D�D� D)�(D)c � � t j d| z � t j | � dk\ rt j d� yt j d� y)NzChecking for library '%s'...r r Tz Not found.F)r r r �find)�libr( s r � check_libr2 [ sE � ��I�I�,�s�2�3��~�~�c��a��� � �(�� �� � �,��r c �� � t j d| �d|�d�� t j |ddd| �� D ] }t j d|z � y t j d� y) NzSearching for file '�' in '�'...TF��recurse� abs_paths�return_folders�patternzFile found at '%s'zFile not found.)r r r � walkFiles)�f�dir�ws r � check_filer? i s[ � ��I�I�a��=�>� �_�_�S�$�$�u�^_� `� ��� � �&��*�+��� �I�I�� �r c �. � t j d| �d|�d�� g }t j |ddd| �� D ]( }t j |� |j |� �* |rt j d|z � |S t j d� |S ) N�Searching for file(s) 'r4 r5 TFr6 �Found files: %s�No files not found.)r r r r; �append)r<