mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
cmds.distro.backend.debian.Select: Add class
Add Select for Debian backends. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7f72d17f7a
commit
2897ba849f
1 changed files with 17 additions and 0 deletions
17
src/python/jw/pkg/cmds/distro/backend/debian/Select.py
Normal file
17
src/python/jw/pkg/cmds/distro/backend/debian/Select.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from typing import Iterable
|
||||
from argparse import Namespace
|
||||
|
||||
from ...lib.Package import Package
|
||||
from ...lib.dpkg import query_packages
|
||||
from ...Cmd import Cmd
|
||||
from ..BeSelect import BeSelect as Base
|
||||
|
||||
class Select(Base):
|
||||
|
||||
def __init__(self, parent: Cmd):
|
||||
super().__init__(parent)
|
||||
|
||||
async def _all_installed_packages(self) -> Iterable[Package]:
|
||||
return await query_packages()
|
||||
Loading…
Add table
Add a link
Reference in a new issue