Merge remote-tracking branch 'tobhe/extra_ppas' into ubuntu/master

This commit is contained in:
michael.hudson@canonical.com 2026-02-26 10:31:11 +13:00
commit 92e680cc2c
No known key found for this signature in database
GPG Key ID: 80E627A0AB757E23

View File

@ -108,10 +108,10 @@ class AptStateManager:
def in_release_path(self) -> pathlib.Path: def in_release_path(self) -> pathlib.Path:
"""Return the path to the InRelease file. """Return the path to the InRelease file.
This assumes exactly one InRelease file matches the pattern. This ignores all but the first path.
Will raise ValueError if there are 0 or multiple matches. Will raise Error if there isn't at least one match.
""" """
[path] = self.apt_root.joinpath("var/lib/apt/lists").glob( [path] = self.apt_root.joinpath("var/lib/apt/lists").glob(
f"*_dists_{self.series}_InRelease" f"*ubuntu.com*_dists_{self.series}_InRelease"
) )
return path return path