summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/orm/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 8d7388e2e6..e0b31a92c4 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1155,12 +1155,12 @@ class Layer_Version(models.Model):
1155 return project.compatible_layerversions(layer_name = self.layer.name) 1155 return project.compatible_layerversions(layer_name = self.layer.name)
1156 1156
1157 def get_vcs_reference(self): 1157 def get_vcs_reference(self):
1158 if self.commit is not None and len(self.commit) > 0:
1159 return self.commit
1160 if self.branch is not None and len(self.branch) > 0: 1158 if self.branch is not None and len(self.branch) > 0:
1161 return self.branch 1159 return self.branch
1162 if self.up_branch is not None: 1160 if self.up_branch is not None:
1163 return self.up_branch.name 1161 return self.up_branch.name
1162 if self.commit is not None and len(self.commit) > 0:
1163 return self.commit
1164 return ("Cannot determine the vcs_reference for layer version %s" % vars(self)) 1164 return ("Cannot determine the vcs_reference for layer version %s" % vars(self))
1165 1165
1166 def get_detailspage_url(self, project_id): 1166 def get_detailspage_url(self, project_id):