Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Tim Orling <ticotimo@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Tim Orling <tim.orling@konsulko.com>
Subject: [PATCH 1/3] lib/oe/distro_check: skip a distro whose package list can't be fetched
Date: Sat, 14 Nov 2026 12:08:08 -0800	[thread overview]
Message-ID: <20261114200810.31078-2-tim.orling@konsulko.com> (raw)
In-Reply-To: <20261114200810.31078-1-tim.orling@konsulko.com>

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(+)

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))
-- 
2.56.1


  reply	other threads:[~2026-11-14 20:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14 20:08 [PATCH 0/3] Fix distro_check when a distro list cannot be fetched Tim Orling
2026-11-14 20:08 ` Tim Orling [this message]
2026-11-14 20:08 ` [PATCH 2/3] lib/oe/distro_check: fetch Debian updates from stable-updates Tim Orling
2026-11-14 20:08 ` [PATCH 3/3] oeqa/selftest/oelib: add tests for oe.distro_check Tim Orling

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261114200810.31078-2-tim.orling@konsulko.com \
    --to=ticotimo@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=tim.orling@konsulko.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox