From c5a16235b8b56102703bc264768ba386ebe90611 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Mon, 11 May 2015 18:58:25 +0100 Subject: bitbake: toaster: fix html5 compliance This patch brings needed changes in all views so that each view passes the HTML5 compliance test by the W3C Markup Service. (Bitbake rev: 6e60ed8ab71e4300ab571f42b7af5011086df697) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/orm/models.py') diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index c00c3520d8..b097504bbb 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -556,7 +556,7 @@ class Recipe(models.Model): return "Recipe " + self.name + ":" + self.version def get_local_path(self): - if settings.MANAGED and self.layer_version.build.project is not None: + if settings.MANAGED and self.layer_version.build is not None and self.layer_version.build.project is not None: # strip any tag prefixes ('virtual:native:') layer_path=self.layer_version.layer.local_path.split(":")[-1] recipe_path=self.file_path.split(":")[-1] -- cgit v1.2.3-54-g00ecf