forked from Mirror/pmbootstrap
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:
parent
67318823b5
commit
2a7864b080
3 changed files with 3 additions and 8 deletions
|
@ -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)
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue