diff -Nru unattended-upgrades-2.3ubuntu0.2/debian/changelog unattended-upgrades-2.3ubuntu0.3/debian/changelog --- unattended-upgrades-2.3ubuntu0.2/debian/changelog 2022-04-25 15:42:11.000000000 +0200 +++ unattended-upgrades-2.3ubuntu0.3/debian/changelog 2022-05-19 19:38:48.000000000 +0200 @@ -1,3 +1,14 @@ +unattended-upgrades (2.3ubuntu0.3) focal; urgency=medium + + * Fix FTBFS following change in the way apt detects automatically removable + kernels (LP: #1974223) + * Work around autopkgtest failure by removing __pycache__ in the test suite + before the invocation of python-coverage (LP: #1974223) + * Added new test depends on apt to trigger autopkgtest runs automatically + when apt is upgraded. + + -- Olivier Gayot Thu, 19 May 2022 19:38:48 +0200 + unattended-upgrades (2.3ubuntu0.2) focal; urgency=medium [ Brian Murray ] diff -Nru unattended-upgrades-2.3ubuntu0.2/debian/tests/control unattended-upgrades-2.3ubuntu0.3/debian/tests/control --- unattended-upgrades-2.3ubuntu0.2/debian/tests/control 2022-04-25 15:42:11.000000000 +0200 +++ unattended-upgrades-2.3ubuntu0.3/debian/tests/control 2022-05-19 19:38:48.000000000 +0200 @@ -1,15 +1,15 @@ Tests: run-tests test-systemd.py -Depends: @, @builddeps@ +Depends: @, @builddeps@, apt Restrictions: needs-root, isolation-container, needs-reboot Tests: upgrade-all-security -Depends: @, @builddeps@, debootstrap, distro-info +Depends: @, @builddeps@, apt, debootstrap, distro-info Restrictions: needs-root, build-needed, skippable Tests: upgrade-between-snapshots Restrictions: needs-root, build-needed, flaky, skippable -Depends: @, @builddeps@, debootstrap +Depends: @, @builddeps@, apt, debootstrap Tests: kernel-patterns -Depends: @, @builddeps@ +Depends: @, @builddeps@, apt Restrictions: build-needed, allow-stderr diff -Nru unattended-upgrades-2.3ubuntu0.2/test/Makefile unattended-upgrades-2.3ubuntu0.3/test/Makefile --- unattended-upgrades-2.3ubuntu0.2/test/Makefile 2022-04-25 15:42:11.000000000 +0200 +++ unattended-upgrades-2.3ubuntu0.3/test/Makefile 2022-05-19 19:38:48.000000000 +0200 @@ -6,12 +6,17 @@ $(MAKE) -C packages check: test-packages + # Between the two invocations of the test files (one with python and + # the second using python-coverage), we remove the content of + # __pycache__ to address the following bug: + # https://bugs.launchpad.net/ubuntu/bionic/+source/unattended-upgrades/+bug/1974223 set -e; \ find . -name 'test_*.py' | \ while read file; do \ if [ -x $$file ]; then \ echo "Running $$file with python3"; \ python3 $$file 2>&1; \ + rm -rf __pycache__ ; \ echo "Running $$file with python3-coverage"; \ python3 -m coverage run -a $$file 2>&1; \ fi \ diff -Nru unattended-upgrades-2.3ubuntu0.2/test/test_remove_unused.py unattended-upgrades-2.3ubuntu0.3/test/test_remove_unused.py --- unattended-upgrades-2.3ubuntu0.2/test/test_remove_unused.py 2022-04-25 15:42:11.000000000 +0200 +++ unattended-upgrades-2.3ubuntu0.3/test/test_remove_unused.py 2022-05-19 19:38:48.000000000 +0200 @@ -52,7 +52,17 @@ Package: linux-image-4.05.0-1021-kvm Status: install ok installed Architecture: all -Version: 1.0 +Version: 1.21 + +Package: linux-image-4.05.0-1022-kvm +Status: install ok installed +Architecture: all +Version: 1.22 + +Package: linux-image-4.05.0-1023-kvm +Status: install ok installed +Architecture: all +Version: 1.23 Package: z-package Status: install ok installed