From: Tim Orling <ticotimo@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Tim Orling <tim.orling@konsulko.com>
Subject: [PATCH 2/3] lib/oe/distro_check: fetch Debian updates from stable-updates
Date: Sat, 14 Nov 2026 12:08:09 -0800 [thread overview]
Message-ID: <20261114200810.31078-3-tim.orling@konsulko.com> (raw)
In-Reply-To: <20261114200810.31078-1-tim.orling@konsulko.com>
ftp.debian.org no longer has dists/stable-proposed-updates, so the
Debian package list always failed with HTTP 404. Use stable-updates,
the equivalent of Ubuntu's -updates, which is only published as
Sources.xz, so read .xz files with lzma.
Tested against ftp.debian.org: the Debian list is fetched again, with
both main and updates packages.
[YOCTO #16503]
AI-Generated: Claude Opus 5.5
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
meta/lib/oe/distro_check.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py
index 56f81e630d..223bed2ec2 100644
--- a/meta/lib/oe/distro_check.py
+++ b/meta/lib/oe/distro_check.py
@@ -110,11 +110,13 @@ def find_latest_debian_release(url, d):
return "_NotFound_"
def get_debian_style_source_package_list(url, section, d):
- "Return the list of package-names stored in the debian style Sources.gz file"
+ "Return the list of package-names stored in the debian style Sources.gz or Sources.xz file"
import gzip
+ import lzma
+ opener = lzma.open if url.endswith(".xz") else gzip.open
package_names = set()
- for line in gzip.open(create_socket(url, d), mode="rt"):
+ for line in opener(create_socket(url, d), mode="rt"):
if line.startswith("Package:"):
pkg = line.split(":", 1)[1].strip()
package_names.add(pkg + ":" + section)
@@ -125,7 +127,7 @@ def get_latest_released_debian_source_package_list(d):
latest = find_latest_debian_release("http://ftp.debian.org/debian/dists/", d)
url = "http://ftp.debian.org/debian/dists/stable/main/source/Sources.gz"
package_names = get_debian_style_source_package_list(url, "main", d)
- url = "http://ftp.debian.org/debian/dists/stable-proposed-updates/main/source/Sources.gz"
+ url = "http://ftp.debian.org/debian/dists/stable-updates/main/source/Sources.xz"
package_names |= get_debian_style_source_package_list(url, "updates", d)
return latest, package_names
--
2.56.1
next prev parent 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 ` [PATCH 1/3] lib/oe/distro_check: skip a distro whose package list can't " Tim Orling
2026-11-14 20:08 ` Tim Orling [this message]
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-3-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