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
|
# Nothing found
|
||||||
if not package:
|
if not package:
|
||||||
logging.info("NOTE: Run 'pmbootstrap pkgrel_bump --auto' to mark"
|
raise RuntimeError("Could not find dependency '" + pkgname_depend +
|
||||||
" packages with outdated dependencies for rebuild."
|
"' in any aports folder or APKINDEX. See:"
|
||||||
" This will most likely fix this issue (soname"
|
" <https://postmarketos.org/depends>")
|
||||||
" bump?).")
|
|
||||||
raise RuntimeError("Could not find package '" + pkgname_depend +
|
|
||||||
"' in any aports folder or APKINDEX.")
|
|
||||||
|
|
||||||
# Append to todo/ret (unless it is a duplicate)
|
# Append to todo/ret (unless it is a duplicate)
|
||||||
pkgname = package["pkgname"]
|
pkgname = package["pkgname"]
|
||||||
|
|
|
@ -133,7 +133,7 @@ def test_recurse_invalid(args, monkeypatch):
|
||||||
# Invalid package
|
# Invalid package
|
||||||
with pytest.raises(RuntimeError) as e:
|
with pytest.raises(RuntimeError) as e:
|
||||||
func(args, ["invalid-pkgname"])
|
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):
|
def return_none(*args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue