lib: Fix misplaced "# export" markers

A couple of "# export" markers after function prototypes have been
pushed along with the closing parenthesis onto the wrong line by the
code formatter, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-07-24 10:33:42 +02:00
commit dcbe959843
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
5 changed files with 18 additions and 18 deletions

View file

@ -33,20 +33,20 @@ async def _run(
if sudo else await run_cmd(cmd, ec = ec, cmd_input = InputMode.NonInteractive)
).stdout_str
async def run_dpkg(
async def run_dpkg( # export
args: list[str],
sudo: bool = False,
ec: ExecContext | None = None
) -> str: # export
) -> str:
cmd = ['/usr/bin/dpkg']
cmd.extend(args)
return await _run(cmd, sudo, ec)
async def run_dpkg_query(
async def run_dpkg_query( # export
args: list[str],
sudo: bool = False,
ec: ExecContext | None = None
) -> str: # export
) -> str:
cmd = ['/usr/bin/dpkg-query']
cmd.extend(args)
return await _run(cmd, sudo, ec)

View file

@ -25,13 +25,13 @@ def meta_map():
)
return _meta_map
async def run_rpm(
async def run_rpm( # export
args: list[str],
sudo: bool = False,
ec: ExecContext | None = None,
mode: InputMode = InputMode.OptInteractive,
**kwargs,
) -> str: # export
) -> str:
cmd = ['/usr/bin/rpm']
cmd.extend(args)
result = (
@ -40,10 +40,10 @@ async def run_rpm(
)
return result.stdout_str
async def query_packages(
async def query_packages( # export
names: Iterable[str] = [],
ec: ExecContext | None = None,
) -> Iterable[Package]: # export
) -> Iterable[Package]:
fmt_str = (
'|'.join([(f'%{{{tag}}}' if tag else '')
for tag in meta_map().values()]) + r'\n'