From 3d20c3562edfbf2cec2315ca45b08da74094aac4 Mon Sep 17 00:00:00 2001 From: Anthony Mendez <738092+0x6d6e647a@users.noreply.github.com> Date: Fri, 20 Oct 2023 21:23:30 -0700 Subject: [PATCH] Fix package.use parsing of "::repo" package atom specification. --- portpeek | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/portpeek b/portpeek index fe6efc3..0bd29f5 100755 --- a/portpeek +++ b/portpeek @@ -616,6 +616,12 @@ def parse_package_use(line, filename): check_for_change = use_flag_dict[line] return True + repo = None + if "::" in check_pkg: + m = re.search("::[a-zA-Z0-9_-]+", check_pkg) + repo = m.group() + check_pkg = check_pkg.replace(repo, "") + check_pkg = (check_pkg.rsplit(':', 1))[0] if ((orig_pkg_name.find("<=") >= 0) or (orig_pkg_name.find("<") >= 0)