ignore some repositories when generating redirects
The releases and releasestatus repos end up producing redirects that conflict with other rules. Since neither has documentation anyway, we can ignore them when generating the redirect rules. Change-Id: Ie1e0217685a9d1209b5265112c8fc1ca2a49f5b0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
307bc75db2
commit
413f6686f6
@ -310,6 +310,10 @@ def load_project_data(source_directory,
|
||||
|
||||
|
||||
_GOVERNANCE_URL = 'http://git.openstack.org/cgit/openstack/governance/plain/reference/projects.yaml' # noqa
|
||||
_IGNORED_REPOS = [
|
||||
'openstack/releases',
|
||||
'openstack-infra/releasestatus',
|
||||
]
|
||||
|
||||
|
||||
def _get_official_repos():
|
||||
@ -330,7 +334,8 @@ def _get_official_repos():
|
||||
else:
|
||||
add = regular_repos.append
|
||||
for repo in d_data.get('repos', []):
|
||||
add({'name': repo, 'base': repo.rsplit('/')[-1]})
|
||||
if repo not in _IGNORED_REPOS:
|
||||
add({'name': repo, 'base': repo.rsplit('/')[-1]})
|
||||
return (regular_repos, infra_repos)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user