mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
remove duplicated names
This commit is contained in:
parent
3c91281388
commit
5dcf7ac087
@ -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__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user