Skip to content

Commit

Permalink
Merge pull request #4 from 0x6d6e647a/issue3_pr
Browse files Browse the repository at this point in the history
Fix package.use parsing of "::repo" package atom specification.
  • Loading branch information
mpagano authored Nov 1, 2023
2 parents 3aa1795 + 3d20c35 commit 68930d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions portpeek
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 68930d9

Please sign in to comment.