← Back
Editing: misc.cpython-312.pyc
� �(f+ � �F � d Z ddlmZmZ ddlmZ ddlmZmZmZ ddl � ddl ZddlZddl ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZdgZdad� Zdad � Z d � Z! G d� de"� Z#d � Z$d� Z%dd�Z&d� Z'd� Z(d� Z)dd�Z*d� Z+da,d� Z-dd�Z.dd�Z/y)z% Assorted utility functions for yum. � )�print_function�absolute_import)�unicode_literals)�base64_decodebytes� basestring�unicode)�*N�sha256c �b � t �t j d� j a t | � S )z( Tests if a string is a shell wildcard. z[*?]|\[.+\])�_re_compiled_glob_match�re�compile�search)�ss �1/usr/lib/python3.12/site-packages/dnf/yum/misc.py�re_globr 0 s* � � �&�"$�*�*�^�"<�"C�"C��"�1�%�%� c � � t �Bt j d� j }t j d� j }||fa t D ] } || � s� y y)zC Tests if a string needs a full nevra match, instead of just name. z.*([-.*?]|\[.+\]).z[0-9]+:TF)�_re_compiled_full_matchr r �match)r �one�two�recs r �re_full_search_neededr 8 sV � � �&��j�j�.�/�5�5���j�j��#�)�)��#&��*��&���q�6�� '� r c � � t d S )Nr )�_default_checksums� r r �get_default_chksum_typer F s � ��a� � r c �0 � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zy) � GenericHolderz�Generic Holder class used to hold other objects of known types It exists purely to be able to do object.somestuff, object.someotherstuff or object[key] and pass object to another function that will understand itNc � � || _ y �N)�_GenericHolder__iter)�self�iters r �__init__zGenericHolder.__init__O s � ���r c �L � | j �t | | j � S y r"