hound: ignore deb-* projects

They are forks for actual projects, and searching against those repos is
wasteful and produces duplicate entries for projects that actually
maintain the code. Upstream developers are usually not interested in
searching through those repos.

This patch ignores those repos completely.

Change-Id: I53d0e129a13f4ca1c7a6dfe189ce33e61f0778b4
This commit is contained in:
Ihar Hrachyshka 2017-03-16 06:03:11 +00:00
parent 61ee4bd673
commit 0f7ddd95cf
1 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,13 @@ def main():
projects = [entry['project'] for entry in registry.configs_list]
repos = {}
for project in projects:
repos[os.path.basename(project)] = {
basename = os.path.basename(project)
# ignore deb- projects that are forks of other projects intended for
# internal debian packaging needs only and are generally not of
# interest to upstream developers
if basename.startswith('deb-'):
continue
repos[basename] = {
'url': "%(proto)s%(gitbase)s/%(project)s" % dict(
proto=GIT_PROTOCOL, gitbase=GIT_SERVER, project=project),
'url-pattern': {