pmb.parse.depends.recurse: tweak message (MR 2151)

Fix the lint error. While at it, change the wording so it's clear it's
looking in pmaports instead of aports, use '' around the source package
just as the message does about the pkgname_depend, remove <> from the
link URL.

New message:
  Could not find dependency 'so:libPocoData.so.80' in checked out pmaports dir or any APKINDEX. Required by 'nymphcast'. See: https://postmarketos.org/depends

Fixes: 81dc4c ("pmb.parse: show which package require the missing package")
This commit is contained in:
Oliver Smith 2021-12-19 18:09:50 +01:00
parent 81dc4c17f6
commit 3e5f27d5e3
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 2 deletions

View File

@ -143,8 +143,9 @@ def recurse(args, pkgnames, suffix="native"):
if pkgname_depend in required_by:
source = ', '.join(required_by[pkgname_depend])
raise RuntimeError(f"Could not find dependency '{pkgname_depend}' "
f"in any aports folder or APKINDEX. Required by: {source}. "
"See: <https://postmarketos.org/depends>")
"in checked out pmaports dir or any APKINDEX. "
f"Required by '{source}'. See: "
"https://postmarketos.org/depends")
# Append to todo/ret (unless it is a duplicate)
pkgname = package["pkgname"]