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:
Jan Lindemann 2026-03-21 10:45:23 +01:00
commit fd35fa0871

View file

@ -56,11 +56,11 @@ class Distro(abc.ABC):
def ctx(self) -> ExecContext:
return self.__exec_context
def run(self, *args, **kwargs) -> Result:
return self.__exec_context.run(*args, **kwargs)
async def run(self, *args, **kwargs) -> Result:
return await self.__exec_context.run(*args, **kwargs)
def sudo(self, *args, **kwargs) -> Result:
return self.__exec_context.sudo(*args, **kwargs)
async def sudo(self, *args, **kwargs) -> Result:
return await self.__exec_context.sudo(*args, **kwargs)
@property
def interactive(self) -> bool: