mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
jw.pkg.cmds.distro.backend.*._sudo(): Pass *args on
Pass *args and **kwargs on unchanged to run_sudo(). Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7fcb031795
commit
0b3f12866c
2 changed files with 4 additions and 4 deletions
|
|
@ -13,8 +13,8 @@ class Backend:
|
|||
def __init__(self, parent: Cmd):
|
||||
self.__parent = parent
|
||||
|
||||
async def _sudo(self, cmd: list[str], mod_env: dict[str, str] = {}, opts: list[str]=[]):
|
||||
return await run_sudo(cmd, mod_env=mod_env, opts=opts, interactive=self.interactive)
|
||||
async def _sudo(self, *args, **kwargs):
|
||||
return await run_sudo(*args, interactive=self.interactive, **kwargs)
|
||||
|
||||
@property
|
||||
def util(self):
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ class Util:
|
|||
def __init__(self, parent: Cmd):
|
||||
self.__parent = parent
|
||||
|
||||
async def _sudo(self, cmd: list[str], mod_env: dict[str, str] = {}, opts: list[str]=[]):
|
||||
return await run_sudo(cmd, mod_env=mod_env, opts=opts, interactive=self.interactive)
|
||||
async def _sudo(self, *args, **kwargs):
|
||||
return await run_sudo(*args, interactive=self.interactive, **kwargs)
|
||||
|
||||
@property
|
||||
def parent(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue