Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib/python3.6/site-packages/dnf-plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 �&d~ � @ s� d dl mZ d dl mZ d dlZd dlZd dlZd dlmZm Z d dl Zd dlZd dl Zd dlZdZdZdZdd � Zd d� Zdd � ZG dd� dejj�ZG dd� dej�ZdS )� )�absolute_import)�unicode_literalsN)�_�logger�kpatchZ autoupdatezkernel-corec C s2 dd� | j D �}x|D ]}tjj|�r|S qW d S )Nc S s g | ]}d |t f �qS )z %s/%s.conf)�KPATCH_PLUGIN_NAME)�.0�path� r �/usr/lib/python3.6/kpatch.py� <listcomp>+ s z(_get_plugin_cfg_file.<locals>.<listcomp>)Zpluginconfpath�osr �isfile)Z base_conf�files�filer r r �_get_plugin_cfg_file* s r c C s: t jd| j�jd�}|jdd�}| jjdd�}dj||�S )Nz (.*)\.el.*� �.r zkpatch-patch-{}-{})�re�match�release�group�replace�version�format)� kernel_pkgZkernel_releaseZkpp_kernel_releaseZkpp_kernel_versionr r r �_kpp_name_from_kernel_pkg2 s r c C sV t |�}| jj� j||jd�}tjj| j�}|j|j � d� | j j|| jj d� d S )N)�name�arch)�pkg)ZselectZoptional)r �sack�query�filterr �dnfZselectorZSelector�set�latestZgoal�install�conf�strict)Zdnf_baser �kpp_pkg_name�kpp_pkgs_queryZkpp_sltrr r r �_install_kpp_pkg9 s r+ c sd e Zd ZdZed�Z� fdd�Zedd� �Zdd� Z d d � Z dd� Zd d� Zdd� Z dd� Z� ZS )� KpatchCmdr z7Toggles automatic installation of kpatch-patch packagesc s"