~lamoura/ubuntu/+source/ubuntu-advantage-tools:upload-27.14.2-focal

Last commit made on 2023-03-28
Get this branch:
git clone -b upload-27.14.2-focal https://git.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools
Only Lucas Albuquerque Medeiros de Moura can upload to this branch. If you are Lucas Albuquerque Medeiros de Moura please log in for upload directions.

Branch merges

Branch information

Name:
upload-27.14.2-focal
Repository:
lp:~lamoura/ubuntu/+source/ubuntu-advantage-tools

Recent commits

8a12021... by Lucas Albuquerque Medeiros de Moura

changelog backport to focal

fd292fb... by Lucas Albuquerque Medeiros de Moura

new upstream release: 27.14.2

f5405e9... by Lucas Albuquerque Medeiros de Moura

bump version to 27.14.2

2bdc151... by Grant Orndorff

always use dpkg instead of lscpu for arch

cdfe994... by Renan Rodrigo

new release 27.14.1

Signed-off-by: Renan Rodrigo <email address hidden>

fd2c7e4... by Lucas Albuquerque Medeiros de Moura

apt: make pkg candidate function safer

We are isolating the creation of both caches (normal apt and esm cache)
on the get_pkg_candidate_version function. This is just to make this
function safer regarding the handling of the global apt configuration

ff8bcf0... by Lucas Albuquerque Medeiros de Moura

security_status: remove unused variable

Since we are using the context manager to create the esm cache,
we don't need to manually create it anymore. Additionally, we understand
that the context manager should properly handle the apt configuration,
but we are removing that extra line to make the code safer, since this could
cause errors on scenarios we cannot anticipate

01aebdc... by Lucas Albuquerque Medeiros de Moura

apt: modify check for Acquire keys for esm cache

cd78175... by Lucas Albuquerque Medeiros de Moura

postinst: fix warning for old ua_config field

bfc9a9f... by Renan Rodrigo

yaml: catch and surface errors with the yaml installation

When working on the fix of LP #2007241 and LP #2007234, some logic was
implemented to import only the system-installed yaml package. However,
after further discussion, the team, with the help of reviewers,
concluded that this is indeed an error, and should be just treated
correctly to avoid a crash (and consequently an oops report).

This commit substitutes the previous logic with two exception handlers:
one for the missing yaml package, another for any yaml package which
cannot perform the basic operations we need.

In both cases, we log an error and exit 1.

Signed-off-by: Renan Rodrigo <email address hidden>