| Message ID | 20261114200810.31078-2-tim.orling@konsulko.com |
|---|---|
| State | New |
| Headers | show |
| Series | Fix distro_check when a distro list cannot be fetched | expand |
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index 1d78348ff3..56f81e630d 100644 --- a/meta/lib/oe/distro_check.py +++ b/meta/lib/oe/distro_check.py @@ -170,6 +170,7 @@ def create_distro_packages_list(distro_check_dir, d): release, package_list = fetcher_func(d) except Exception as e: bb.warn("Cannot fetch packages for %s: %s" % (name, e)) + continue bb.note("Distro: %s, Latest Release: %s, # src packages: %d" % (name, release, len(package_list))) if len(package_list) == 0: bb.error("Didn't fetch any packages for %s %s" % (name, release))
When a fetcher raised, create_distro_packages_list() only warned and then used release and package_list anyway, failing with UnboundLocalError on the first distro, so no package lists were written at all. Move on to the next distro instead. Tested by making the Debian fetcher raise: the other four package lists are written. [YOCTO #16503] AI-Generated: Claude Opus 5.5 Signed-off-by: Tim Orling <tim.orling@konsulko.com> --- meta/lib/oe/distro_check.py | 1 + 1 file changed, 1 insertion(+)