mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
cmds.distro.backend.debian.Pkg: Add module
Add Debian support for the "pkg"-command. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2897ba849f
commit
f55d3045e0
1 changed files with 17 additions and 0 deletions
17
src/python/jw/pkg/cmds/distro/backend/debian/Pkg.py
Normal file
17
src/python/jw/pkg/cmds/distro/backend/debian/Pkg.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 list_files
|
||||
from ...Cmd import Cmd
|
||||
from ..BePkg import BePkg as Base
|
||||
|
||||
class Pkg(Base):
|
||||
|
||||
def __init__(self, parent: Cmd):
|
||||
super().__init__(parent)
|
||||
|
||||
async def _list_files(self, name: str) -> Iterable[Package]:
|
||||
return await list_files(name)
|
||||
Loading…
Add table
Add a link
Reference in a new issue