Bug 1079984 - Delete build system cached list when project is not found

This commit is contained in:
mdoglio 2014-10-13 14:53:16 +01:00
Родитель 6fab3a0890
Коммит e1f445816c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -195,7 +195,7 @@ class JobsModel(TreeherderModelBase):
if not project:
project = self.project
build_systems = cache.get("build_system_by_repo", None)
if not build_systems:
if not build_systems or project not in build_systems:
build_systems = dict((repo, build_system_type) for repo, build_system_type in
ReferenceDataSignatures.objects.order_by("repository"
).values_list("repository", "build_system_type").distinct()