Browse Source

🛠Fix deps script version regex

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
727bf7dd8c
  1. 2
      buildroot/share/PlatformIO/scripts/common-dependencies.py

2
buildroot/share/PlatformIO/scripts/common-dependencies.py

@ -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]

Loading…
Cancel
Save