diff --git a/pmb/build/_package.py b/pmb/build/_package.py index 389096af..1f55055f 100644 --- a/pmb/build/_package.py +++ b/pmb/build/_package.py @@ -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) diff --git a/pmb/helpers/package.py b/pmb/helpers/package.py index 7935afe5..835d2876 100644 --- a/pmb/helpers/package.py +++ b/pmb/helpers/package.py @@ -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") diff --git a/pmb/helpers/pmaports.py b/pmb/helpers/pmaports.py index 6a0dfc05..3aca458a 100644 --- a/pmb/helpers/pmaports.py +++ b/pmb/helpers/pmaports.py @@ -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