Skip to content

Commit

Permalink
fix(package): corrects the condition to fetch packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain committed Feb 1, 2024
1 parent ee1265d commit f056d3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion riocli/package/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def fetch_packages(
if 'io-public' in pkg.packageId:
continue

if include_all or re.search(package_name_or_regex, pkg.packageName):
if (include_all or package_name_or_regex == pkg.packageName or
pkg.packageId == package_name_or_regex or
(package_name_or_regex not in pkg.packageName and
re.search(package_name_or_regex, pkg.packageName))):
result.append(pkg)

return result
Expand Down

0 comments on commit f056d3a

Please sign in to comment.