← Back
Editing: kpatch.cpython-312.opt-1.pyc
� n�h�2 � � � d Z ddlmZ ddlmZ ddlZddlZddlZddlm Z m Z ddlZddlZddl ZddlZddlZddlZdZdZdZd Zd � Zd� Zd� Z G d � dej0 j2 � Z G d� dej6 � Zy)z� The DNF plugin helps customers to install kpatch-patch packages when the kernel is upgraded and filter kernel-core packages that are supported by the kpatch team. � )�absolute_import)�unicode_literalsN)�_�logger�kpatch� autoupdate� autofilter�kernel-corec � � | j D �cg c] }|�dt �d��� }}|D ]% }t j j |� s�#|c S y c c}w )N�/z.conf)�pluginconfpath�KPATCH_PLUGIN_NAME�os�path�isfile)� base_confr �files�files �7/usr/lib/python3.12/site-packages/dnf-plugins/kpatch.py�_get_plugin_cfg_filer 4 sN � �CL�C[�C[�\�C[�4�T�#5� 6�C[�E�\��� �7�7�>�>�$���K� � �� ]s �Ac �� � t j d| j � j d� }|j dd� }| j j dd� }dj ||� S )Nz (.*)\.el.*� �.r zkpatch-patch-{}-{})�re�match�release�group�replace�version�format)� kernel_pkg�kernel_release�kpp_kernel_release�kpp_kernel_versions r �_kpp_name_from_kernel_pkgr% <