Fix issue where incoming and master SDKs were not listed in the 'emsdk list' output. Thanks to MTRo for providing the fix!
This commit is contained in:
7
emsdk
7
emsdk
@@ -406,10 +406,15 @@ class Tool:
|
|||||||
|
|
||||||
def compatible_with_this_os(self):
|
def compatible_with_this_os(self):
|
||||||
if hasattr(self, 'os'):
|
if hasattr(self, 'os'):
|
||||||
|
if self.os == 'all':
|
||||||
|
return True
|
||||||
if (WINDOWS and 'win' in self.os) or (LINUX and 'linux' in self.os) or (OSX and 'osx' in self.os):
|
if (WINDOWS and 'win' in self.os) or (LINUX and 'linux' in self.os) or (OSX and 'osx' in self.os):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
if not hasattr(self, 'osx_url') and not hasattr(self, 'windows_url') and not hasattr(self, 'unix_url'):
|
||||||
|
return True
|
||||||
|
|
||||||
if OSX and hasattr(self, 'osx_url'):
|
if OSX and hasattr(self, 'osx_url'):
|
||||||
return True
|
return True
|
||||||
@@ -506,7 +511,7 @@ class Tool:
|
|||||||
if not success:
|
if not success:
|
||||||
return False
|
return False
|
||||||
print "Done."
|
print "Done."
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
url = self.download_url()
|
url = self.download_url()
|
||||||
if hasattr(self, 'git_branch'):
|
if hasattr(self, 'git_branch'):
|
||||||
|
|||||||
Reference in New Issue
Block a user