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:
parent
4e2b15e586
commit
4e1ec7eaf6
4 changed files with 5 additions and 5 deletions
|
|
@ -323,11 +323,11 @@ class Distro(abc.ABC):
|
|||
# -- select
|
||||
|
||||
@abc.abstractmethod
|
||||
async def _select(self, names: Iterable[str]) -> Iterable[Package]:
|
||||
async def _select_by_name(self, names: Iterable[str]) -> Iterable[Package]:
|
||||
pass
|
||||
|
||||
async def select(self, names: Iterable[str] = []) -> Iterable[Package]:
|
||||
return await self._select(names)
|
||||
return await self._select_by_name(names)
|
||||
|
||||
# -- install
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue