0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-23 01:58:59 +00:00

🔨 Fix marlin_custom.* without lib_deps

This commit is contained in:
Scott Lahteine 2023-02-21 18:22:16 -06:00
parent e65e38afaf
commit d5d497f2c5

View file

@ -67,6 +67,7 @@ if pioutil.is_pio_build():
for dep in re.split(r',\s*', line):
lib_name = re.sub(r'@([~^]|[<>]=?)?[\d.]+', '', dep.strip()).split('=').pop(0)
lib_re = re.compile('(?!^' + lib_name + '\\b)')
if not 'lib_deps' in feat: feat['lib_deps'] = {}
feat['lib_deps'] = list(filter(lib_re.match, feat['lib_deps'])) + [dep]
blab("[%s] lib_deps = %s" % (feature, dep), 3)