helpers: more small cleanup (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-10 06:18:18 +02:00 committed by Oliver Smith
parent fc010bc7c8
commit d9ffb87424
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 3 additions and 3 deletions

View file

@ -616,7 +616,7 @@ def lint(args: PmbArgs):
if not packages: if not packages:
packages = pmb.helpers.pmaports.get_list() packages = pmb.helpers.pmaports.get_list()
pmb.helpers.lint.check(args, packages) pmb.helpers.lint.check(packages)
def status(args: PmbArgs) -> None: def status(args: PmbArgs) -> None:

View file

@ -1,7 +1,7 @@
# Copyright 2023 Danct12 <danct12@disroot.org> # Copyright 2023 Danct12 <danct12@disroot.org>
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from pathlib import Path from pathlib import Path
from typing import Dict, List from typing import Dict, List, Sequence
from pmb.core.chroot import Chroot from pmb.core.chroot import Chroot
from pmb.core.pkgrepo import pkgrepo_iter_package_dirs, pkgrepo_names, pkgrepo_relative_path from pmb.core.pkgrepo import pkgrepo_iter_package_dirs, pkgrepo_names, pkgrepo_relative_path
from pmb.helpers import logging from pmb.helpers import logging
@ -15,7 +15,7 @@ import pmb.helpers.run
import pmb.helpers.pmaports import pmb.helpers.pmaports
def check(args: PmbArgs, pkgnames: List[str]): def check(pkgnames: Sequence[str]):
"""Run apkbuild-lint on the supplied packages. """Run apkbuild-lint on the supplied packages.
:param pkgnames: Names of the packages to lint :param pkgnames: Names of the packages to lint