aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/models.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-01-09 09:46:40 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commitebceecb7fd91714e8925c4fbcc05ccdf8012181d (patch)
treeb027ed88181657cb4a5cdc1acc955008b924dbf3 /layerindex/models.py
parentc183b360ff07673f00d0f4f224ced3c46fd87381 (diff)
downloadopenembedded-core-contrib-ebceecb7fd91714e8925c4fbcc05ccdf8012181d.tar.gz
Save recipe source URLs
Save each remote SRC_URI so we can use these for the recipe reporting system. This replaces an earlier implementation in the rrs branch where we simply stored SRC_URI verbatim. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/models.py')
-rw-r--r--layerindex/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/layerindex/models.py b/layerindex/models.py
index 2b9601a299..84d2e09d6f 100644
--- a/layerindex/models.py
+++ b/layerindex/models.py
@@ -378,6 +378,13 @@ class Recipe(models.Model):
def __str__(self):
return os.path.join(self.filepath, self.filename)
+class Source(models.Model):
+ recipe = models.ForeignKey(Recipe)
+ url = models.CharField(max_length=255)
+
+ def __str__(self):
+ return '%s - %s' % (self.recipe.pn, self.url)
+
class PackageConfig(models.Model):
recipe = models.ForeignKey(Recipe)
feature = models.CharField(max_length=255)