summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-04-06 17:46:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 23:10:29 +0100
commitf1b49dc4b6fd76f88596b87ac5a14e5f3d265eca (patch)
tree2e773e8a55631a54f754dd0ba800f2e51cc7934c /bitbake
parent22242ae2213a0b8493cf0962cf639e3ead4e9bc9 (diff)
downloadpoky-f1b49dc4b6fd76f88596b87ac5a14e5f3d265eca.tar.gz
bitbake: toaster: tables BuildsTable exclude cancelled builds
Exclude cancelled builds from showing in the builds table [YOCTO #6787] (Bitbake rev: a724d6aa7515e712a1d656e46e1d0f3bf7d4cea9) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index 822c7e586c..385d65895d 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -1080,8 +1080,9 @@ class BuildsTable(ToasterTable):
1080 """ 1080 """
1081 queryset = self.get_builds() 1081 queryset = self.get_builds()
1082 1082
1083 # don't include in progress builds 1083 # Don't include in progress builds pr cancelled builds
1084 queryset = queryset.exclude(outcome=Build.IN_PROGRESS) 1084 queryset = queryset.exclude(Q(outcome=Build.IN_PROGRESS) |
1085 Q(outcome=Build.CANCELLED))
1085 1086
1086 # sort 1087 # sort
1087 queryset = queryset.order_by(self.default_orderby) 1088 queryset = queryset.order_by(self.default_orderby)