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

View File

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