From b1c61d8bf1877e9154e53d095a46ab123e695c57 Mon Sep 17 00:00:00 2001 From: Tobias Heider Date: Wed, 25 Feb 2026 11:48:55 +0100 Subject: [PATCH] Fix extra_ppas ignore launchpad repos in in_release_path because it can only handle a single repo. --- live-build/isobuilder/apt_state.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/live-build/isobuilder/apt_state.py b/live-build/isobuilder/apt_state.py index 1cf0440f..64bcaa7c 100644 --- a/live-build/isobuilder/apt_state.py +++ b/live-build/isobuilder/apt_state.py @@ -108,10 +108,10 @@ class AptStateManager: def in_release_path(self) -> pathlib.Path: """Return the path to the InRelease file. - This assumes exactly one InRelease file matches the pattern. - Will raise ValueError if there are 0 or multiple matches. + This ignores all but the first path. + Will raise Error if there isn't at least one match. """ [path] = self.apt_root.joinpath("var/lib/apt/lists").glob( - f"*_dists_{self.series}_InRelease" + f"*ubuntu.com*_dists_{self.series}_InRelease" ) return path