diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-10-23 22:57:18 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:16 +0000 |
commit | 3e1e8e6a99ebe17cce96db812e1cac2c206a2839 (patch) | |
tree | bcde6b366d46ac94ccf9b20b8d7d84c0d723d693 /bitbake/lib/toaster/orm | |
parent | 14d09c8b22a65b7e5740719351d0e8de561d8865 (diff) | |
download | poky-3e1e8e6a99ebe17cce96db812e1cac2c206a2839.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index ac2aa9e469..9c573bf003 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1326,7 +1326,7 @@ class Layer_Version(models.Model): | |||
1326 | return self.up_branch.name | 1326 | return self.up_branch.name |
1327 | if self.commit is not None and len(self.commit) > 0: | 1327 | if self.commit is not None and len(self.commit) > 0: |
1328 | return self.commit | 1328 | return self.commit |
1329 | return ("Cannot determine the vcs_reference for layer version %s" % vars(self)) | 1329 | return 'N/A' |
1330 | 1330 | ||
1331 | def get_detailspage_url(self, project_id): | 1331 | def get_detailspage_url(self, project_id): |
1332 | return reverse('layerdetails', args=(project_id, self.pk)) | 1332 | return reverse('layerdetails', args=(project_id, self.pk)) |