Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1cfef0a authored by Aaron Kling's avatar Aaron Kling
Browse files

repopick: Fallback to name when project path is empty

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
parent 2a621ba1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -251,7 +251,8 @@ if __name__ == '__main__':

    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: