Skip to content

Commit

Permalink
dont patch if platform_build is 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aatchison committed Jul 3, 2017
1 parent 6786f95 commit b776a41
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,13 @@ def patch_platform(self, message):
self.platform_type = ConfigurationManager.instance().get("enclosure").get("platform")
self.platform_build = ConfigurationManager.instance().get("enclosure").get("platform_build")
if self.platform_type == "mycroft_mark_1" or self.platform_type == "picroft":
if self.platform_build < 4 or self.platform_build is None:
#self.patch_platform()
if self.platform_build < 4 or self.platform_build is None and not 2:
try:
exc = os.popen("curl -sL https://mycroft.ai/platform_patch_1|base64 --decode|bash")
#print exc.close()
self.speak_dialog("platform.patch.success")
except:
self.speak_dialog("platform.patch.failure")
pass
elif self.platform_build is 2:
pass
else:
self.speak_dialog("platform.patch.not.possible")

Expand Down

0 comments on commit b776a41

Please sign in to comment.