Merge pull request #249 from mozilla/bug-1079984-clear-build-system-cache

Bug 1079984 - Delete build system cached list when project is not found
This commit is contained in:
camd 2014-10-15 07:52:34 -07:00
Родитель 8177591cfe e1f445816c
Коммит 59dba0e5c6
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -196,7 +196,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()