mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 17:45:55 +02:00
cmds.distro.backend.debian.Util.py: Add dpkg()
Add utility method .dpkg() to the backend.debian.Utils class, saving the need to import it, saving the need to import it. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7e85076b44
commit
a7293e0ac9
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from ...Cmd import Cmd
|
from ...Cmd import Cmd
|
||||||
|
from ...lib.dpkg import run_dpkg
|
||||||
from ..Util import Util as Base
|
from ..Util import Util as Base
|
||||||
|
|
||||||
class Util(Base):
|
class Util(Base):
|
||||||
|
|
@ -16,3 +17,6 @@ class Util(Base):
|
||||||
mod_env = { 'DEBIAN_FRONTEND': 'noninteractive' }
|
mod_env = { 'DEBIAN_FRONTEND': 'noninteractive' }
|
||||||
cmd.extend(args)
|
cmd.extend(args)
|
||||||
return await self._sudo(cmd, mod_env=mod_env)
|
return await self._sudo(cmd, mod_env=mod_env)
|
||||||
|
|
||||||
|
async def dpkg(self, *args, **kwargs):
|
||||||
|
return await run_dpkg(*args, **kwargs)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue