mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
lib.Distro: Add missing async
Distro's sudo() and run() wrappers are not flagged async. It still works, because throughout jw-pkg all callers expect a coroutine return value, but flagging them as async makes the return value obvious. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
990858e0f9
commit
fd35fa0871
1 changed files with 4 additions and 4 deletions
|
|
@ -56,11 +56,11 @@ class Distro(abc.ABC):
|
||||||
def ctx(self) -> ExecContext:
|
def ctx(self) -> ExecContext:
|
||||||
return self.__exec_context
|
return self.__exec_context
|
||||||
|
|
||||||
def run(self, *args, **kwargs) -> Result:
|
async def run(self, *args, **kwargs) -> Result:
|
||||||
return self.__exec_context.run(*args, **kwargs)
|
return await self.__exec_context.run(*args, **kwargs)
|
||||||
|
|
||||||
def sudo(self, *args, **kwargs) -> Result:
|
async def sudo(self, *args, **kwargs) -> Result:
|
||||||
return self.__exec_context.sudo(*args, **kwargs)
|
return await self.__exec_context.sudo(*args, **kwargs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def interactive(self) -> bool:
|
def interactive(self) -> bool:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue