From f55d3045e002e6c1557ebaa880d539ca475c532d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 4 Mar 2026 09:40:14 +0000 Subject: [PATCH] cmds.distro.backend.debian.Pkg: Add module Add Debian support for the "pkg"-command. Signed-off-by: Jan Lindemann --- .../jw/pkg/cmds/distro/backend/debian/Pkg.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/python/jw/pkg/cmds/distro/backend/debian/Pkg.py diff --git a/src/python/jw/pkg/cmds/distro/backend/debian/Pkg.py b/src/python/jw/pkg/cmds/distro/backend/debian/Pkg.py new file mode 100644 index 00000000..15adb991 --- /dev/null +++ b/src/python/jw/pkg/cmds/distro/backend/debian/Pkg.py @@ -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)