Bug 16510

Summary: distro_check: openSUSE Leap package lists fail with HTTP 404
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Tim Orling <tim.orling>
Component: oe-core otherAssignee: Tim Orling <tim.orling>
Status: IN PROGRESS REVIEW --- QA Contact:
Severity: normal    
Priority: Medium    
Version: unspecified   
Target Milestone: 6.2 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Tim Orling 2026-11-15 02:02:34 UTC
get_latest_released_opensuse_source_package_list() in
meta/lib/oe/distro_check.py fails with "HTTP Error 404: Not Found".
download.opensuse.org has changed in three ways:

1. Its directory listings (MirrorCache) link to "./15.6/" rather than
   "15.6/", so find_latest_numeric_release() can't parse any release
   number and returns "", and the URL becomes .../leap//repo/...
2. Even with that fixed, the listing also has the old Leap 42.2 and
   42.3, which compare higher than 15.x and 16.x.
3. The source RPMs are now under repo/oss/src/, not repo/oss/suse/src/
   (for 15.6 as well as 16.x), and Leap 16 has no update/leap/16.0/
   update repository.

Proposed fix: accept "./" links in get_links_from_url(), ignore the
42.x releases, read repo/oss/src/, and treat a missing update repository
as having no update packages.
Comment 1 Tim Orling 2026-11-15 02:24:49 UTC
Patch 2/3 sent to openembedded-core, under review (patchwork 104080, series 53381):
https://lore.kernel.org/all/20261115021914.67744-1-tim.orling@konsulko.com/
Comment 2 Tim Orling 2026-11-15 02:42:23 UTC
Tested on the layer index test instance (layers.moto-timo.net): RRS's
rrs_distros.py against OE-Core master (f32bced7b4) with the 16503
series and this series applied:

  NOTE: Distro: Debian, Latest Release: 13.7, # src packages: 37593
  NOTE: Distro: Ubuntu, Latest Release: resolute, # src packages: 3053
  NOTE: Distro: Fedora, Latest Release: 45, # src packages: 23237
  NOTE: Distro: openSUSE, Latest Release: 16.1, # src packages: 10638

No warnings. The run completed for all eight layer branches, and the
recipe-to-distro matches went from 3035 (Debian, Ubuntu xenial, Fedora)
to 4177 (Debian 1317, Fedora 1186, openSUSE 1089, Ubuntu 585).