Skip to content

Commit 4caca64

Browse files
committed
Fix a bug with incorrect handling "--version-spec" option
1 parent bd2e939 commit 4caca64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pioinstaller/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def check(dev=False, auto_upgrade=False, version_spec=None):
168168

169169
if version_spec:
170170
try:
171-
if piocore_version in semantic_version.Spec(version_requirements):
171+
if piocore_version not in semantic_version.Spec(version_spec):
172172
raise exception.InvalidPlatformIOCore(
173173
"PlatformIO Core version %s does not match version requirements %s."
174174
% (str(piocore_version), version_spec)

0 commit comments

Comments
 (0)