Tweak messages for 'Could not find aport' (MR 2480)

Replace aports -> pmaports in these messages.

$ pmbootstrap build systemd
[17:37:02] NOTE: The package 'systemd' exists in extra-repos/systemd, but systemd is currently disabled
[17:37:02] ERROR: Could not find package 'systemd' in pmaports
This commit is contained in:
Oliver Smith 2024-11-07 18:04:11 +01:00
parent 67318823b5
commit 2a7864b080
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 3 additions and 8 deletions

View file

@ -355,9 +355,7 @@ def process_package(
" try again"
)
return []
raise RuntimeError(
f"{pkgname}: Could not find aport, and" " could not find this package in any APKINDEX!"
)
raise RuntimeError(f"{pkgname}: Could not find it in pmaports or any APKINDEX!")
if arch is None:
arch = pmb.build.autodetect.arch(base_apkbuild)

View file

@ -126,10 +126,7 @@ def get(
# Could not find the package
if not must_exist:
return None
raise RuntimeError(
"Package '" + pkgname + "': Could not find aport, and"
" could not find this package in any APKINDEX!"
)
raise RuntimeError(f"Package '{pkgname}': Could not find it in pmaports or any APKINDEX!")
@Cache("pkgname", "arch")

View file

@ -205,7 +205,7 @@ def find(package, must_exist=True, subpackages=True, with_extra_repos="default")
# Crash when necessary
if ret is None and must_exist:
show_pkg_not_found_systemd_hint(package, with_extra_repos)
raise RuntimeError("Could not find aport for package: " + package)
raise RuntimeError(f"Could not find package '{package}' in pmaports")
return ret