%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/__pycache__/system.cpython-312.pyc |
� �Hcff � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlmZ d dl mZ d dlmZmZmZmZmZmZmZ d dlmZmZmZ dZdZdZd Zd ZddiZ ejB ejD e#� � Z$d Z%dZ& edde jN fde jN fg� Z( edde)fde)fdee j fdee) fdee* fdee* fdee* fdee) fdee) fg � Z+ edde)fde)fde)fd e)fg� Z, ed!d"e)fd#ee* fd$ee* fg� Z- ed%d&eee) fd'eee) fg� Z.d(Z/d)ej` d*ee j fd+�Z1d)ej` d*ee j fd,�Z2 ed�-� d*e+fd.�� Z3d/� Z4 ed�-� d*e)fd0�� Z5 ed�-� d*e)fd1�� Z6 ed�-� d*e-fd2�� Z7 ed�-� d*e)fd3�� Z8 ed�-� d*e,fd4�� Z9 ed�-� de)d*e:fd5�� Z; ed�-� d*e:fd6�� Z< ed�-� de)d*e:fd7�� Z= ed�-� de)d*e:fd8�� Z> ed�-� d*e:fd9�� Z? ed�-� d_d:e)d*e:fd;�� Z@ ed�-� d*e:fd<�� ZA ed�-� d*ee)e)f fd=�� ZB ed�-� de)d*e(fd>�� ZCd?e)d*ee) fd@�ZD d`dAeee) dBeee) d*e:fdC�ZEdDe)d*e:fdE�ZFdadFe)dGe:d*e)fdH�ZGdbdFe)dIe*d*dfdJ�ZH dcdFe)dKe)dIee* d*dfdL�ZIdMe)d*dfdN�ZJ dddOee) dPeee* dQe:dReeK dSeee)e)f dTe:d*ee)e)f fdU�ZL dedOee) dPeee* dQe:dReeK dVeeeK dSeee)e)f dTe:d*ee)e)f fdW�ZMdXe)d*dfdY�ZNdZe)d*e:fd[�ZOdZe)d*ee) fd\�ZPd*e)fd]�ZQd*ee. fd^�ZRy)f� N)� lru_cache)�rmtree)�Dict�List� NamedTuple�Optional�Sequence�Set�Tuple)�defaults� exceptions�utilz/var/run/reboot-requiredz/var/run/reboot-required.pkgsz/etc/machine-idz/var/lib/dbus/machine-idz!/usr/share/distro-info/ubuntu.csv�GenuineIntel�intelz5(?P<release>\d+\.\d+) (LTS\s*)?(\((?P<series>\w+))?.*zd^(?P<major>[\d]+)[.-](?P<minor>[\d]+)[.-](?P<patch>[\d]+)-(?P<abi>[\d]+)-(?P<flavor>[A-Za-z0-9_-]+)$� DistroInfo�eol�eol_esm� KernelInfo�uname_machine_arch� uname_release� build_date�proc_version_signature_version�major�minor�patch�abi�flavor�ReleaseInfo�distribution�release�series�pretty_version�CpuInfo� vendor_id�model�stepping�RebootRequiredPkgs�standard_packages�kernel_packagesz(Mon|Tue|Wed|Thu|Fri|Sat|Sun).*�uname�returnc � � t � rt j d� y t j d� t j dj | j � � }t j j |j t j j � S # t $ r t j d� Y y w xY w)NzPNot attempting to use timestamp of kernel changelog because we're in a containerz3Falling back to using timestamp of kernel changelogz1/usr/share/doc/linux-image-{}/changelog.Debian.gzzUnable to stat kernel changelog) �is_container�LOG�warning�os�stat�formatr �datetime� fromtimestamp�st_mtime�timezone�utc� Exception)r* �stat_results �1/usr/lib/python3/dist-packages/uaclient/system.py�_get_kernel_changelog_timestampr; _ s� � � �~����^� � ��K�K�E�F���g�g�?�F�F�� � � � �� � � �.�.�� � �(�"3�"3�"7�"7� � �� � ����5�6���s �A/B'