Skip to content

distro_check: fix the Ubuntu and openSUSE package lists, drop Clear

Tim Orling openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- 2/3: use str.removeprefix() for the "./" links (Richard Purdie)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/oe/distro_check: find the latest Ubuntu release from meta-releasemeta/lib/oe/distro_check.py meta/lib/oeqa/selftest/cases/oelib/distro_check.py+40 -120 replies
2/3lib/oe/distro_check: fix the openSUSE Leap package listsmeta/lib/oe/distro_check.py meta/lib/oeqa/selftest/cases/oelib/distro_check.py+42 -41 reply
3/3lib/oe/distro_check: drop Clear Linuxmeta/lib/oe/distro_check.py meta/lib/oeqa/selftest/cases/oelib/distro_check.py+2 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] distro_check: fix the Ubuntu and openSUSE package lists, drop Clear

With the fixes for bug 16503, create_distro_packages_list() still got the wrong Ubuntu release and no openSUSE or Clear lists:

NOTE: Distro: Ubuntu, Latest Release: xenial, # src packages: 3456
WARNING: Cannot fetch packages for openSUSE: HTTP Error 404: Not Found
WARNING: Cannot fetch packages for Clear: <urlopen error [Errno -3] Temporary failure in name resolution>

1: Bug 16509: the Ubuntu archive ignores the "newest first" sort that
find_latest_ubuntu_release() relied on, so it always took xenial. Use the release list that do-release-upgrade reads instead.
2: Bug 16510: download.opensuse.org's listings now link to "./15.6/",
still include Leap 42.x, and keep the source RPMs under repo/oss/src/; Leap 16 has no update repository.
3: Bug 16511: Clear Linux has been discontinued.

With these, all four lists are fetched:

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

The new cases are covered by oe-selftest's oelib.distro_check, run with plain unittest (not oe-selftest).

This applies on top of "Fix distro_check when a distro list cannot be fetched" (bug 16503):
https://lore.kernel.org/all/[email protected]/

Changes in v2:
- 2/3: use str.removeprefix() for the "./" links (Richard Purdie)

Tim Orling (3):
lib/oe/distro_check: find the latest Ubuntu release from meta-release lib/oe/distro_check: fix the openSUSE Leap package lists lib/oe/distro_check: drop Clear Linux

 meta/lib/oe/distro_check.py                   | 59 ++++++++++++-------
 .../oeqa/selftest/cases/oelib/distro_check.py | 49 ++++++++++++++-
 2 files changed, 84 insertions(+), 24 deletions(-)
Signature · 1 line
2.56.1