diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-05-12 18:29:39 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-06-03 10:59:10 +0100 |
commit | 38e8791c211703e3b8830587c33aab190d120811 (patch) | |
tree | 502a652bf5fd16e239d8b798a74c0e29f41e9b69 /layerindex/models.py | |
parent | e72a33e16add142f7f5561f510907ff92d320425 (diff) | |
download | openembedded-core-contrib-38e8791c211703e3b8830587c33aab190d120811.tar.gz |
Collect BUGTRACKER, PROVIDES and BBCLASSEXTEND for each recipe
* Show BUGTRACKER in the recipe detail page if set
* Track the other two variables for possible future use
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/models.py')
-rw-r--r-- | layerindex/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layerindex/models.py b/layerindex/models.py index bad95cd0d2..f4d8cc18bb 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -8,6 +8,7 @@ from django.db import models from datetime import datetime from django.contrib.auth.models import User from django.core.urlresolvers import reverse +from django.core.validators import URLValidator import os.path import re import posixpath @@ -219,6 +220,9 @@ class Recipe(models.Model): section = models.CharField(max_length=100, blank=True) license = models.CharField(max_length=100, blank=True) homepage = models.URLField(blank=True) + bugtracker = models.URLField(blank=True) + provides = models.CharField(max_length=255, blank=True) + bbclassextend = models.CharField(max_length=100, blank=True) def vcs_web_url(self): url = self.layerbranch.file_url(os.path.join(self.filepath, self.filename)) |