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
diff --git a/jeepyb/cmd/create_hound_config.py b/jeepyb/cmd/create_hound_config.py
index 7824db7..4bad05d 100644
--- a/jeepyb/cmd/create_hound_config.py
+++ b/jeepyb/cmd/create_hound_config.py
@@ -33,7 +33,13 @@
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': {