mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
bitbake: toaster: Prioroitise the layer more generic vcs reference over the sha
When we do a build we update the last commit value that the layer was built at However in future builds we do want to use the named reference rather than the commit sha, e.g. master/fido (Bitbake rev: a3d47eb923dd2cb5259f387c79549822807eca49) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
922503f4c1
commit
aed6d2e8c0
@@ -1155,12 +1155,12 @@ class Layer_Version(models.Model):
|
||||
return project.compatible_layerversions(layer_name = self.layer.name)
|
||||
|
||||
def get_vcs_reference(self):
|
||||
if self.commit is not None and len(self.commit) > 0:
|
||||
return self.commit
|
||||
if self.branch is not None and len(self.branch) > 0:
|
||||
return self.branch
|
||||
if self.up_branch is not None:
|
||||
return self.up_branch.name
|
||||
if self.commit is not None and len(self.commit) > 0:
|
||||
return self.commit
|
||||
return ("Cannot determine the vcs_reference for layer version %s" % vars(self))
|
||||
|
||||
def get_detailspage_url(self, project_id):
|
||||
|
||||
Reference in New Issue
Block a user