Skip to content

Commit

Permalink
remove duplicated names
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyiqun committed Dec 27, 2016
1 parent 3c91281 commit 5dcf7ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpers/manifest-xml-repolist.py
Expand Up @@ -21,8 +21,12 @@ def main():
parser.add_argument("remote", nargs='+',
help='remotes whose projects should be included')
args = parser.parse_args()
present = set()
for repo in get_repolist(args.manifest, args.remote):
print(repo.get('name'))
name = repo.get('name')
if name not in present:
print(name)
present.add(name)


if __name__ == "__main__":
Expand Down

0 comments on commit 5dcf7ac

Please sign in to comment.