summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 454f3692be..ad7a8569f2 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -538,6 +538,11 @@ class Machine(models.Model):
538 name = models.CharField(max_length=255) 538 name = models.CharField(max_length=255)
539 description = models.CharField(max_length=255) 539 description = models.CharField(max_length=255)
540 540
541 def get_vcs_machine_file_link_url(self):
542 path = 'conf/machine/'+self.name+'.conf'
543
544 return self.layer_version.get_vcs_file_link_url(path)
545
541 def __unicode__(self): 546 def __unicode__(self):
542 return "Machine " + self.name + "(" + self.description + ")" 547 return "Machine " + self.name + "(" + self.description + ")"
543 548
@@ -901,7 +906,7 @@ class Layer_Version(models.Model):
901 906
902 # code lifted, with adaptations, from the layerindex-web application https://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/ 907 # code lifted, with adaptations, from the layerindex-web application https://git.yoctoproject.org/cgit/cgit.cgi/layerindex-web/
903 def _handle_url_path(self, base_url, path): 908 def _handle_url_path(self, base_url, path):
904 import re 909 import re, posixpath
905 if base_url: 910 if base_url:
906 if self.dirpath: 911 if self.dirpath:
907 if path: 912 if path: