Skip to content

Fix distro_check when a distro list cannot be fetched

Tim Orling openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/oe/distro_check: skip a distro whose package list can't be fetchedmeta/lib/oe/distro_check.py+1 -00 replies
2/3lib/oe/distro_check: fetch Debian updates from stable-updatesmeta/lib/oe/distro_check.py+5 -30 replies
3/3oeqa/selftest/oelib: add tests for oe.distro_checkmeta/lib/oeqa/selftest/cases/oelib/distro_check.py+59 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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
Signature · 1 line
2.56.1