From bbf8aa342a3e3ee9f65ded46241d52b17419d958 Mon Sep 17 00:00:00 2001 From: Hannes Verschore Date: Thu, 26 Nov 2015 15:55:26 +0100 Subject: [PATCH] Detect Cygwin as windows --- slave/download.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slave/download.py b/slave/download.py index b23e38e..df0b9f5 100644 --- a/slave/download.py +++ b/slave/download.py @@ -76,6 +76,8 @@ class ChromeRevisionFinder(RevisionFinder): return "Mac" if platform.system() == "Windows": return "Win" + if platform.system().startswith("CYGWIN"): + return "Win" raise Exception("Unknown platform: " + platform.system()) def latest(self): @@ -112,6 +114,8 @@ class MozillaRevisionFinder(RevisionFinder): return "macosx64" if platform.system() == "Windows": return "win"+arch + if platform.system().startswith("CYGWIN"): + return "win"+arch raise Exception("Unknown platform: " + platform.system()) def _subdir(self):