mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 03:03:02 +01:00
bitbake: toaster: test 'commit' first in get_vcs_reference
The 'commit' value should be tested and used first when resolving the ref for a layer, since that is an explicit override in each layer index 'layeritem' record. If should take precedence over more-global 'branch' and 'release' values, instead of being last. [YOCTO #11515] (Bitbake rev: b303365ca3a1ba5fb8c6839180f1ec26df60c6ce) 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
eea5cb3171
commit
b4b2e6d4df
@@ -1516,12 +1516,12 @@ class Layer_Version(models.Model):
|
||||
return self._handle_url_path(self.layer.vcs_web_tree_base_url, '')
|
||||
|
||||
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.release is not None:
|
||||
return self.release.name
|
||||
if self.commit is not None and len(self.commit) > 0:
|
||||
return self.commit
|
||||
return 'N/A'
|
||||
|
||||
def get_detailspage_url(self, project_id=None):
|
||||
|
||||
Reference in New Issue
Block a user