%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/__pycache__/upgrade_lts_contract.cpython-312.pyc |
� �Hcf � � � d Z ddlZddlZddlZddlmZmZmZmZm Z ddl mZ ddlm Z dddd d dd�Z ej e j e� � Zd e ddfd�Zd� Zy)a� This function is called from lib/upgrade_lts_contract.py and from lib/reboot_cmds.py This function should be used after running do-release-upgrade in a machine. It will detect any contract deltas between the release before do-release-upgrade and the current release. If we find any differences in the uaclient contract between those releases, we will apply that difference in the upgraded release. For example, suppose we are on Trusty and we are upgrading to Xenial. We found that the apt url for esm services on trusty: https://esm.ubuntu.com/ubuntu While on Xenial, the apt url is: https://esm.ubuntu.com/infra/ubuntu This script will detect differences like that and update the Xenial system to reflect them. � N)�contract�defaults�messages�system�util)�_is_attached)�UAConfig�trusty�xenial�bionic�focal�lunar�jammy)r r r r �mantic�noble�cfg�returnc �V � t j d� t | � j st j d� y t j d� t j ddgddg�� \ }}|rt t j � t j � j }t j |� }|�Yt t j j |� � � t j d |t � t! j"