Merge pull request #1658 from jberry-suse/osclib.core.repository_path_expand-skip-duplicate-path

osclib/core: repository_path_expand(): skip adding duplicate path.
This commit is contained in:
Jimmy Berry 2018-08-22 17:33:11 -05:00 committed by GitHub
commit a9f1bc0ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,6 +345,12 @@ def repository_path_expand(apiurl, project, repo, repos=None):
# calls which effectively means the list grows even when new project.
repos = []
if [project, repo] in repos:
# For some reason devel projects such as graphics include the same path
# twice for openSUSE:Factory/snapshot. Does not hurt anything, but
# cleaner not to include it twice.
return repos
repos.append([project, repo])
meta = ET.fromstringlist(show_project_meta(apiurl, project))