From 06d2af7d988e071a3c4c4dbc229f578d8f0331a4 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Thu, 27 Jun 2013 16:25:52 +0200 Subject: Fix init-repository.py for Mac. On Mac we also want to clone submodules which have an os tag 'mac'. Change-Id: Ibed75378767e3489a7b496c77a563464e10ea0a8 Reviewed-by: Andras Becsi --- init-repository.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init-repository.py') diff --git a/init-repository.py b/init-repository.py index ae7679da5..529c56910 100755 --- a/init-repository.py +++ b/init-repository.py @@ -79,7 +79,9 @@ class Submodule: return True if sys.platform.startswith('win32') and 'win' in self.os: return True - if (sys.platform.startswith('linux') or sys.platform.startswith('darwin')) and 'unix' in self.os: + if sys.platform.startswith('linux') and 'unix' in self.os: + return True + if sys.platform.startswith('darwin') and ('unix' in self.os or 'mac' in self.os): return True return False -- cgit v1.2.3