From c362e61ee2cc97b393f7002c4592787d6573080c Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 9 Jun 2015 16:03:36 +0100 Subject: bitbake: toaster: remove MANAGED references We conflate the managed and analysis modes by deleting alternative code paths, favouring the MANAGED mode, always considering the MANAGED variable True. (Bitbake rev: 0ac02d3775106b485e29496b62f31e91fd3f9387) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 4 +- bitbake/lib/toaster/toastergui/templates/base.html | 9 +- .../toastergui/templates/basebuilddetailpage.html | 4 +- .../toastergui/templates/basebuildpage.html | 6 +- .../templates/basetable_top_buildprojects.html | 2 - .../templates/basetable_top_projectbuilds.html | 2 - .../lib/toaster/toastergui/templates/bpackage.html | 3 - .../lib/toaster/toastergui/templates/build.html | 8 -- .../toastergui/templates/builddashboard.html | 16 ---- bitbake/lib/toaster/toastergui/views.py | 103 +-------------------- 10 files changed, 8 insertions(+), 149 deletions(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 88194504c5..422f2bfd93 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -288,9 +288,7 @@ class BuildArtifact(models.Model): def is_available(self): - if settings.MANAGED and build.project is not None: - return build.buildrequest.environment.has_artifact(file_path) - return False + return build.buildrequest.environment.has_artifact(file_path) class ProjectTarget(models.Model): project = models.ForeignKey(Project) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 3f3253d6b2..7430338b1c 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -48,7 +48,6 @@ }; -{%if MANAGED %} -{% endif %} - {% block extraheadcontent %} {% endblock %} @@ -80,14 +75,13 @@ Toaster {% if DEBUG %} - + {% endif %} Toaster manual - {%if MANAGED %} @@ -132,7 +126,6 @@ - {%endif%} diff --git a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html index c8e217e9dd..d324c90712 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html @@ -7,10 +7,8 @@