Skip to content

Commit 135152b

Browse files
committed
fix is_library_installed() using incorrect parameter
1 parent f03b9d8 commit 135152b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_platform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def run_or_die(cmd, error):
169169
def is_library_installed(lib_name):
170170
try:
171171
installed_libs = subprocess.check_output(["arduino-cli", "lib", "list"]).decode("utf-8")
172-
return not all(not item for item in [re.match('^'+dep+'\\s*\\d+\\.', line) for line in installed_libs.split('\n')])
172+
return not all(not item for item in [re.match('^'+lib_name+'\\s*\\d+\\.', line) for line in installed_libs.split('\n')])
173173
except subprocess.CalledProcessError as e:
174174
print("Error checking installed libraries:", e)
175175
return False

0 commit comments

Comments
 (0)