mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
bitbake: toaster: recipe path broken in recipe detail page
The recipe paths in managed mode are not processed correctly. They need any prefix tags removed, and then any build path prefix removed only if present. [YOCTO #7523] (Bitbake rev: ee5c569ebe21c065508cd816ae8cb8842baf0b7e) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
77cad30d53
commit
db254cb513
@@ -557,7 +557,13 @@ class Recipe(models.Model):
|
||||
|
||||
def get_local_path(self):
|
||||
if settings.MANAGED and self.layer_version.build.project is not None:
|
||||
return self.file_path[len(self.layer_version.layer.local_path)+1:]
|
||||
# strip any tag prefixes ('virtual:native:')
|
||||
layer_path=self.layer_version.layer.local_path.split(":")[-1]
|
||||
recipe_path=self.file_path.split(":")[-1]
|
||||
if 0 == recipe_path.find(layer_path):
|
||||
return recipe_path[len(layer_path)+1:]
|
||||
else:
|
||||
return recipe_path
|
||||
|
||||
return self.file_path
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
{% endwith %}
|
||||
</td>
|
||||
<!-- Recipe file -->
|
||||
<td class="recipe_file">{{recipe.file_path}}</td>
|
||||
<td class="recipe_file">{{recipe.get_local_path}}</td>
|
||||
<!-- Section -->
|
||||
<td class="recipe_section">{{recipe.section}}</td>
|
||||
<!-- License -->
|
||||
|
||||
Reference in New Issue
Block a user