Display wiki link on dependency error (#1410)
This commit is contained in:
parent
a9e07049e8
commit
9c83cdcea1
|
@ -151,12 +151,9 @@ def recurse(args, pkgnames, suffix="native"):
|
|||
|
||||
# Nothing found
|
||||
if not package:
|
||||
logging.info("NOTE: Run 'pmbootstrap pkgrel_bump --auto' to mark"
|
||||
" packages with outdated dependencies for rebuild."
|
||||
" This will most likely fix this issue (soname"
|
||||
" bump?).")
|
||||
raise RuntimeError("Could not find package '" + pkgname_depend +
|
||||
"' in any aports folder or APKINDEX.")
|
||||
raise RuntimeError("Could not find dependency '" + pkgname_depend +
|
||||
"' in any aports folder or APKINDEX. See:"
|
||||
" <https://postmarketos.org/depends>")
|
||||
|
||||
# Append to todo/ret (unless it is a duplicate)
|
||||
pkgname = package["pkgname"]
|
||||
|
|
|
@ -133,7 +133,7 @@ def test_recurse_invalid(args, monkeypatch):
|
|||
# Invalid package
|
||||
with pytest.raises(RuntimeError) as e:
|
||||
func(args, ["invalid-pkgname"])
|
||||
assert str(e.value).startswith("Could not find package")
|
||||
assert str(e.value).startswith("Could not find dependency")
|
||||
|
||||
|
||||
def return_none(*args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue