<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16503</bug_id>
          
          <creation_ts>2026-11-14 07:57:11 +0000</creation_ts>
          <short_desc>distro_check: create_distro_packages_list() crashes when a distro can&apos;t be fetched (Debian 404)</short_desc>
          <delta_ts>2026-11-15 00:26:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>6.99</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS REVIEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107448</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-14 07:57:11 +0000</bug_when>
    <thetext>create_distro_packages_list() in meta/lib/oe/distro_check.py crashes as soon as one distro&apos;s package list can&apos;t be fetched, so no distro package lists are written at all:

  WARNING: Cannot fetch packages for Debian: HTTP Error 404: Not Found
  File &quot;.../meta/lib/oe/distro_check.py&quot;, line 173, in create_distro_packages_list
    bb.note(&quot;Distro: %s, Latest Release: %s, # src packages: %d&quot; % (name, release, len(package_list)))
  UnboundLocalError: cannot access local variable &apos;release&apos; where it is not associated with a value

(OE-Core master, f32bced7b4, 2026-11-13.)

Two problems:

1. When fetcher_func() raises, the except block only warns and then carries on using release and package_list, which were never set (or are left over from the previous distro). It should skip to the next distro (&quot;continue&quot;) after the warning.

2. The Debian list currently always fails: get_latest_released_debian_source_package_list() fetches
   http://ftp.debian.org/debian/dists/stable-proposed-updates/main/source/Sources.gz
   which returns 404 (stable/main/source/Sources.gz still exists). The proposed-updates list should be optional, or fetched from where Debian now publishes it.

This breaks the Recipe Reporting System&apos;s rrs_distros.py on the layer index, which calls create_distro_packages_list() to show which distros package each recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107450</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-14 20:10:42 +0000</bug_when>
    <thetext>Patches sent to openembedded-core, under review:
https://lore.kernel.org/all/20261114200810.31078-1-tim.orling@konsulko.com/

1/3 lib/oe/distro_check: skip a distro whose package list can&apos;t be fetched
2/3 lib/oe/distro_check: fetch Debian updates from stable-updates
3/3 oeqa/selftest/oelib: add tests for oe.distro_check

Patchwork series 53375 (patches 104067-104069).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107455</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-11-15 00:26:51 +0000</bug_when>
    <thetext>Tested with the three patches from series 53375 on a layer index test
instance (layers.moto-timo.net), running RRS&apos;s rrs_distros.py against
OE-Core master (f32bced7b4) plus the patches:

  NOTE: Distro: Debian, Latest Release: 13.7, # src packages: 37593
  NOTE: Distro: Ubuntu, Latest Release: xenial, # src packages: 3456
  NOTE: Distro: Fedora, Latest Release: 45, # src packages: 23237
  WARNING: Cannot fetch packages for openSUSE: HTTP Error 404: Not Found
  WARNING: Cannot fetch packages for Clear: &lt;urlopen error [Errno -3] Temporary failure in name resolution&gt;

The Debian list is fetched again, and the two distros that fail are now
skipped with a warning instead of stopping the run, so the package lists
for the other distros are written.

The run also shows three separate problems, not covered by these
patches:
- Ubuntu is detected as &quot;xenial&quot;: find_latest_ubuntu_release() takes the
  most recently modified *-updates directory, which is not the latest
  release.
- The openSUSE Leap URLs return 404.
- Clear Linux has been discontinued, so download.clearlinux.org no
  longer resolves.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>