lib.Distro._select() -> _select_by_name()

Rename ._select() to _select_by_name() in Distro and its subclasses.
Don't rename .select() itself, because it's going to be a broader
interface supporting more select criteria than just package names.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-21 11:29:19 +02:00
commit 4e1ec7eaf6
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
4 changed files with 5 additions and 5 deletions

View file

@ -48,7 +48,7 @@ class Distro(Base):
return True
return False
async def _select(self, names: Iterable[str]) -> Iterable[Package]:
async def _select_by_name(self, names: Iterable[str]) -> Iterable[Package]:
return await query_packages(names, ec=self.ctx)
async def _install(self, names: Iterable[str], only_update: bool) -> None: