summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2015-08-05 01:01:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-08-05 01:01:02 +0000
commit43322283dc97b12e6d5b03c27fb780b0110f889a (patch)
treed34bfa5366fffa045f8d82158b19a5add4c588b9 /command.py
parent7e59de2bcc8513ba28701062be2637d90cb6eeff (diff)
parent0369a069ade1602879c16dd33dc592bed3f17c0f (diff)
downloadgit-repo-43322283dc97b12e6d5b03c27fb780b0110f889a.tar.gz
Merge "Support filtering by group on forall and list subcmd"
Diffstat (limited to 'command.py')
-rw-r--r--command.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/command.py b/command.py
index 207ef46b..38cacd3b 100644
--- a/command.py
+++ b/command.py
@@ -126,7 +126,7 @@ class Command(object):
126 pass 126 pass
127 return project 127 return project
128 128
129 def GetProjects(self, args, missing_ok=False, submodules_ok=False): 129 def GetProjects(self, args, groups='', missing_ok=False, submodules_ok=False):
130 """A list of projects that match the arguments. 130 """A list of projects that match the arguments.
131 """ 131 """
132 all_projects_list = self.manifest.projects 132 all_projects_list = self.manifest.projects
@@ -134,7 +134,8 @@ class Command(object):
134 134
135 mp = self.manifest.manifestProject 135 mp = self.manifest.manifestProject
136 136
137 groups = mp.config.GetString('manifest.groups') 137 if not groups:
138 groups = mp.config.GetString('manifest.groups')
138 if not groups: 139 if not groups:
139 groups = 'default,platform-' + platform.system().lower() 140 groups = 'default,platform-' + platform.system().lower()
140 groups = [x for x in re.split(r'[,\s]+', groups) if x] 141 groups = [x for x in re.split(r'[,\s]+', groups) if x]