mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
cmds.distro.backend.debian.Delete: Add class
Add Debian supoort for single-package deletion. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a7293e0ac9
commit
8ca8df859b
1 changed files with 14 additions and 0 deletions
14
src/python/jw/pkg/cmds/distro/backend/debian/Delete.py
Normal file
14
src/python/jw/pkg/cmds/distro/backend/debian/Delete.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from argparse import Namespace
|
||||
|
||||
from ...Cmd import Cmd
|
||||
from ..BeDelete import BeDelete as Base
|
||||
|
||||
class Delete(Base):
|
||||
|
||||
def __init__(self, parent: Cmd):
|
||||
super().__init__(parent)
|
||||
|
||||
async def run(self, args: Namespace):
|
||||
return await self.util.dpkg(['-P', *args.names], sudo=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue