Skip to content

Commit

Permalink
repopick: Fallback to name when project path is empty
Browse files Browse the repository at this point in the history
When a manifest project path and project name is identical, the
repo manifest parser returns None for the project path. Since
both name and path are required, fall back to using name for path
when path is None.

Change-Id: I2fb3cc0cc643808a3049171804742f249d737679
  • Loading branch information
webgeek1234 committed Jun 28, 2020
1 parent 83d2fa4 commit d97bfec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/tools/repopick.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ def fetch_query(remote_url, query):

for project in projects:
name = project.get('name')
path = project.get('path')
# when name and path are equal, "repo manifest" doesn't return a path at all, so fall back to name
path = project.get('path', name)
revision = project.get('revision')
if revision is None:
for remote in remotes:
Expand Down

0 comments on commit d97bfec

Please sign in to comment.