diff options
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 4a6ca8f2b1..b9bb896b57 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -557,7 +557,13 @@ class Recipe(models.Model): | |||
557 | 557 | ||
558 | def get_local_path(self): | 558 | def get_local_path(self): |
559 | if settings.MANAGED and self.layer_version.build.project is not None: | 559 | if settings.MANAGED and self.layer_version.build.project is not None: |
560 | return self.file_path[len(self.layer_version.layer.local_path)+1:] | 560 | # strip any tag prefixes ('virtual:native:') |
561 | layer_path=self.layer_version.layer.local_path.split(":")[-1] | ||
562 | recipe_path=self.file_path.split(":")[-1] | ||
563 | if 0 == recipe_path.find(layer_path): | ||
564 | return recipe_path[len(layer_path)+1:] | ||
565 | else: | ||
566 | return recipe_path | ||
561 | 567 | ||
562 | return self.file_path | 568 | return self.file_path |
563 | 569 | ||