pmbootstrap-meow/pmb/helpers
Clayton Craft 7ab40a4336
pmb.lint: Don't try to lint apkbuild paths that are empty
This fixes an issue where pmb lint tries to lint an apkbuild using a repo path that the apkbuild doesn't exist in.
For example, it fixes this:

```
[22:13:26] (native) linting postmarketos-ui-cosmic with apkbuild-lint
[22:13:26] *** apkbuild-lint output ***
Error: File APKBUILD does not exist
[22:13:26] *** apkbuild-lint output ***
[22:13:26] ERROR: Linter failed!
Traceback (most recent call last):
  File "/builds/postmarketOS/pmaports/.ci/lib/apkbuild_linting.py", line 26, in <module>
    common.run_pmbootstrap(["-q", "lint"] + packages)
  File "/builds/postmarketOS/pmaports/.ci/lib/common.py", line 52, in run_pmbootstrap
    subprocess.run(cmd, universal_newlines=True, check=True)
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pmbootstrap', '--aports', '/builds/postmarketOS/pmaports', '-q', 'lint', 'postmarketos-ui-cosmic']' returned non-zero exit status 2.
```

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2584
2025-04-15 11:51:29 +02:00
..
__init__.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
apk.py pmb.helpers.apk: support PMB_APK_NO_CACHE 2025-03-17 07:09:10 +01:00
apk_static.py pmb: Add more types and fix type errors (MR 2514) 2024-12-20 16:29:33 +01:00
aportupgrade.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
args.py helpers: logging: reduce the risk of a cyclical import (MR 2463) 2024-11-02 18:15:38 +01:00
cli.py helpers.cli: Fix regex validation (MR 2557) 2025-02-27 00:24:08 +01:00
devices.py pmb: Add more type hints (MR 2489) 2024-11-14 23:16:29 +01:00
exceptions.py pmb: Remove unnecessary pass statements (MR 2537) 2025-02-02 22:48:50 +01:00
file.py pmb: Add more type hints (MR 2513) 2024-12-19 18:52:25 +01:00
frontend.py Log only if config was really changed 2025-04-08 20:59:12 +03:00
git.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
http.py Add option to auto-select the best mirror 2025-04-11 17:27:33 +02:00
lint.py pmb.lint: Don't try to lint apkbuild paths that are empty 2025-04-15 11:51:29 +02:00
locale.py pmb.helpers.locale: Use frozenset for primary_layouts (MR 2525) 2025-01-15 22:35:02 +01:00
logging.py pmb.helpers.logging: Use PEP 8-compliant naming (MR 2537) 2025-02-02 22:48:51 +01:00
mount.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
other.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
package.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
pkgrel_bump.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
pmaports.py pmb: Reformat with Ruff 0.9 (MR 2525) 2025-01-15 22:35:02 +01:00
repo.py core: Arch: add .supported_binary() (MR 2474) 2025-02-27 01:29:30 +01:00
repo_missing.py pmb: Use unpacking operator to concatenate collections (MR 2525) 2025-01-15 22:35:02 +01:00
run.py helpers: run: stop handling Arch in PathString (MR 2463) 2024-11-02 18:15:39 +01:00
run_core.py helpers.run.core.add_proxy_env_vars: fix variables (MR 2525) 2025-01-15 22:55:27 +01:00
status.py show the status output on failure (MR 2472) 2024-11-04 10:15:59 +09:00
toml.py pmb: Add lots of type hints (MR 2464) 2024-10-30 12:39:45 +01:00
ui.py pmb.helpers.ui: Add must_exist argument to check_option() (MR 2530) 2025-01-16 12:22:28 +01:00