Skip to content

Commit ad52f16

Browse files
committed
Validate requested SDK version in response
1 parent 33d51a0 commit ad52f16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pebble_tool/sdk/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _install_toolchain_from_handle(self, f, sdk_version, platform_name):
252252

253253
def install_remote_sdk(self, version):
254254
sdk_info = self.request("/v1/files/sdk-core/{}?channel={}".format(version, self.get_channel())).json()
255-
if 'version' not in sdk_info:
255+
if version not in sdk_info:
256256
raise SDKInstallError("SDK {} could not be downloaded.".format(version))
257257
path = os.path.normpath(os.path.join(self.sdk_dir, sdk_info['version']))
258258
manifest_path = os.path.join(path, 'sdk-core', 'manifest.json')

0 commit comments

Comments
 (0)