Skip to content

Commit e5001bd

Browse files
author
Martijn Thé
committed
Skip 'appinfo' option hack for all unparseble versions
1 parent 44fb52c commit e5001bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pebble_tool/commands/sdk/create.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ def __call__(self, args):
150150
options.append('worker')
151151

152152
# Hack for old SDKs that need an appinfo, because the declarative system can't
153-
# handle "this, but only if not that."
154-
if sdk != 'tintin' and version_to_key(sdk) < (3, 13, 0):
153+
# handle "this, but only if not that." For "tintin" SDKs and unparseble
154+
# versions, assume this hack is not needed.
155+
version_number = version_to_key(sdk)
156+
if version_number[:5] != (0, 0, 0, 0, 0) and \
157+
version_number < (3, 13, 0):
155158
options.append('appinfo')
156159

157160
with open(extant_path(os.path.join(x, "templates.json") for x in template_paths)) as f:

0 commit comments

Comments
 (0)