⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
uaclient
/
__pycache__
/
View File Name :
version.cpython-312.pyc
J g d Z ddlZddlmZ ddlmZ ddlmZm Z m Z ddlmZm Z ddlmZ ddlmZ d Zd Zd efdZd ee fdZd ee fd Zy)z" Client version related functions N)inf)Optional)get_apt_cache_timeget_pkg_candidate_versionversion_compare)CANDIDATE_CACHE_PATHUAC_RUN_PATH)ProcessExecutionError)subpz34.1.2returnc t j d st S t j j t j j t } t j j t j j | d r#g d} t | \ }}|j S t S # t $ r Y t S w xY w)aO Return the packaged version as a string Prefer the binary PACKAGED_VESION set by debian/rules to DEB_VERSION. If unavailable, check for a .git development environments: a. If run in our upstream repo `git describe` will gives a leading XX.Y so return the --long version to allow daily build recipes to count commit offset from upstream's XX.Y signed tag. b. If run in a git-ubuntu pkg repo, upstream tags aren't visible, believe __VERSION__ is correct - there is and MUST always be a test to make sure it matches debian/changelog z@@PACKAGED_VERSIONz.git)gitdescribez --abbrev=8z--match=[0-9]*z--long)PACKAGED_VERSION startswithospathdirname__file__existsjoinr stripr __VERSION__)topdircmdout_s 2/usr/lib/python3/dist-packages/uaclient/version.pyget_versionr s &&';< WW__RWW__X6 7F ww~~bggll6623K #YFC99; % s C CCc T t xs t } t j j t r&t j t j | k rXd } t d }|rGt j t d t t d 5 }|j | d d d |S t t d 5 }|j j cd d d S # 1 sw Y |S xY w# t $ r ||cY S Y Ww xY w# 1 sw Y y xY w# t $ r Y y w xY w)Nzubuntu-pro-clientT)exist_okwr)r r r r r r statst_mtimer makedirsr openwrite Exceptionreadr )last_apt_cache_updatecandidate_versionfs r get_last_known_candidater. / s /07CGGNN/0 77'(114II ) 9:M N L48.4GG-. 5(( ! & ,668>># - , 5(( ) ,(( - ) - s` 8C: C-) C: 5D D# D -C72C: 7C: : DDDD D D'&D'c N t } | rt | t dkD r| S y )Nr )r. r r ) candidates r check_for_new_versionr1 L s&