Detect Cygwin as windows
This commit is contained in:
Родитель
8345547116
Коммит
bbf8aa342a
|
@ -76,6 +76,8 @@ class ChromeRevisionFinder(RevisionFinder):
|
||||||
return "Mac"
|
return "Mac"
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
return "Win"
|
return "Win"
|
||||||
|
if platform.system().startswith("CYGWIN"):
|
||||||
|
return "Win"
|
||||||
raise Exception("Unknown platform: " + platform.system())
|
raise Exception("Unknown platform: " + platform.system())
|
||||||
|
|
||||||
def latest(self):
|
def latest(self):
|
||||||
|
@ -112,6 +114,8 @@ class MozillaRevisionFinder(RevisionFinder):
|
||||||
return "macosx64"
|
return "macosx64"
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
return "win"+arch
|
return "win"+arch
|
||||||
|
if platform.system().startswith("CYGWIN"):
|
||||||
|
return "win"+arch
|
||||||
raise Exception("Unknown platform: " + platform.system())
|
raise Exception("Unknown platform: " + platform.system())
|
||||||
|
|
||||||
def _subdir(self):
|
def _subdir(self):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче