Display wiki link on dependency error (#1410)

This commit is contained in:
Oliver Smith 2018-04-23 20:51:06 +00:00 committed by GitHub
parent a9e07049e8
commit 9c83cdcea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -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"]

View File

@ -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):