diff options
Diffstat (limited to 'command.py')
-rw-r--r-- | command.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -175,7 +175,10 @@ class Command(object): | |||
175 | self._ResetPathToProjectMap(all_projects_list) | 175 | self._ResetPathToProjectMap(all_projects_list) |
176 | 176 | ||
177 | for arg in args: | 177 | for arg in args: |
178 | projects = manifest.GetProjectsWithName(arg) | 178 | # We have to filter by manifest groups in case the requested project is |
179 | # checked out multiple times or differently based on them. | ||
180 | projects = [project for project in manifest.GetProjectsWithName(arg) | ||
181 | if project.MatchesGroups(groups)] | ||
179 | 182 | ||
180 | if not projects: | 183 | if not projects: |
181 | path = os.path.abspath(arg).replace('\\', '/') | 184 | path = os.path.abspath(arg).replace('\\', '/') |
@@ -200,7 +203,7 @@ class Command(object): | |||
200 | 203 | ||
201 | for project in projects: | 204 | for project in projects: |
202 | if not missing_ok and not project.Exists: | 205 | if not missing_ok and not project.Exists: |
203 | raise NoSuchProjectError(arg) | 206 | raise NoSuchProjectError('%s (%s)' % (arg, project.relpath)) |
204 | if not project.MatchesGroups(groups): | 207 | if not project.MatchesGroups(groups): |
205 | raise InvalidProjectGroupsError(arg) | 208 | raise InvalidProjectGroupsError(arg) |
206 | 209 | ||