From 3e5f27d5e3e1b83ba185becc74a56b6705df0b7d Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 19 Dec 2021 18:09:50 +0100 Subject: [PATCH] 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") --- pmb/parse/depends.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pmb/parse/depends.py b/pmb/parse/depends.py index 797b5ea6..cb6b5565 100644 --- a/pmb/parse/depends.py +++ b/pmb/parse/depends.py @@ -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: ") + "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"]