0x1949 Team - FAZEMRX - MANAGER
Edit File: kerneldetection.cpython-310.pyc
o �g� � @ s8 d dl Z d dlZd dlZd dlmZ G dd� de�ZdS )� N)�Popenc @ sV e Zd Zddd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� ZdS )�KernelDetectionNc C sF |r || _ t�|�| _d S t�� t�� t�d �| _ t�|�| _d S �N)� apt_cache�apt_pkg�DepCache�apt_depcache�init_config�init_system�Cache)�self�cache� r �?/usr/lib/python3/dist-packages/UbuntuDrivers/kerneldetection.py�__init__ s zKernelDetection.__init__c C s� t �d�}|�|�}|�|�}|r)d|�d�|�d�f }d|�d�|�d�f }t�d||f � d||f }t|�d��}|�� |j S )Nz(.+)-([0-9]+)-(.+)�%s-%s� � zComparing %s with %sz dpkg --compare-versions %s gt %s� ) �re�compile�match�group�logging�debugr �split�communicate� returncode)r �term1�term2�pattern�match1�match2�command�processr r r �_is_greater_than* s"