Skip to content

Commit

Permalink
Add PV and PR separators
Browse files Browse the repository at this point in the history
  • Loading branch information
soimkim committed Apr 11, 2024
1 parent b27d233 commit 7d3754b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_yocto/create_oss_report_for_yocto.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def find_latest_pkg_from_buildhistory(path_buildhistory, installed_pkg_version):
pkg = match.group(3).strip()
for pkg_name in pkg.split():
re_pkg_name = re.escape(pkg_name)
r = re.compile(f"^{re_pkg_name}-{pv}-{pr}")
r = re.compile(f"^{re_pkg_name}(-|_){pv}(-|_){pr}")
installed_pkg_verified = list(filter(r.match, installed_pkg_version_lines))
if installed_pkg_verified:
nested_pkg_name[pkg_name] = recipe_name
Expand Down

0 comments on commit 7d3754b

Please sign in to comment.