bitbake: toaster: models fall back to a sensible string for no vcs reference
Fall back to a 'n/a' string for the vcs reference, not all our source has to be in a vcs and therefore it is legitimate for this to be none. (Bitbake rev: 1739b509e9efc4b016fc73c2d4399f1f9d3d285f) 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:
parent
14d09c8b22
commit
3e1e8e6a99
|
@ -1326,7 +1326,7 @@ class Layer_Version(models.Model):
|
|||
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))
|
||||
return 'N/A'
|
||||
|
||||
def get_detailspage_url(self, project_id):
|
||||
return reverse('layerdetails', args=(project_id, self.pk))
|
||||
|
|
Loading…
Reference in New Issue