mbox series

[0/3] Fix distro_check when a distro list cannot be fetched

Message ID 20261114200810.31078-1-tim.orling@konsulko.com
Headers show
Series Fix distro_check when a distro list cannot be fetched | expand

Message

Tim Orling Nov. 14, 2026, 8:08 p.m. UTC
create_distro_packages_list() in meta/lib/oe/distro_check.py writes no
package lists at all at the moment: the Debian list always fails, and
any failed distro then crashes the loop with UnboundLocalError.

1: Skip a distro whose package list can't be fetched.
2: ftp.debian.org no longer has dists/stable-proposed-updates. Read
   Debian updates from stable-updates instead, which is only published
   as Sources.xz.
3: Offline oe-selftest tests (oelib.distro_check) for both.

Nothing in OE-Core has used oe.distro_check since distrodata.bbclass
was removed in 2018, but the Recipe Reporting System on the layer
index still does (rrs_distros.py), to show which distros package each
recipe, and it has been broken by this.

[YOCTO #16503]

Tim Orling (3):
  lib/oe/distro_check: skip a distro whose package list can't be fetched
  lib/oe/distro_check: fetch Debian updates from stable-updates
  oeqa/selftest/oelib: add tests for oe.distro_check

 meta/lib/oe/distro_check.py                   |  9 ++-
 .../oeqa/selftest/cases/oelib/distro_check.py | 59 +++++++++++++++++++
 2 files changed, 65 insertions(+), 3 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/oelib/distro_check.py