Skip to content

Commit

Permalink
🛠Fix deps script version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Jyers committed Feb 3, 2021
1 parent bc12ee7 commit aea9826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildroot/share/PlatformIO/scripts/common-dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def add_to_feat_cnf(feature, flines):
feat[name] = '='.join(parts)
else:
for dep in line.split(','):
lib_name = re.sub(r'([@~^=]|[<>]=?)[\d.]+', '', dep.strip()).split('=').pop(0)
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
lib_re = re.compile('(?!^' + lib_name + '\\b)')
feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]

Expand Down

0 comments on commit aea9826

Please sign in to comment.