aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/models.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-05-30 13:43:58 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-10 06:55:26 +1200
commitbf94b2f7e949ffbe806e69c8c4df1010dbf14265 (patch)
tree458072df21a74bd65ea98a523117dbdd31002061 /layerindex/models.py
parentc64e4c57a9158c8ae5e49f526c3ff87950d3a94e (diff)
downloadopenembedded-core-contrib-bf94b2f7e949ffbe806e69c8c4df1010dbf14265.tar.gz
update.py: allow updating all branches with one command
Allow updating multiple branches, and if no branches are specified, update all branches that have a new "updates_enabled" flag field set to True. This avoids the need to have a separate shell script which runs update.py for each branch (and thus has hardcoded knowledge of each active branch in the index, i.e. it needs to be kept up-to-date in addition to the database.) The migration will default updates_enabled to True for all branches so if you wish to take advantage of this functionality, the flag will need to be set to False for any branches that shouldn't be updated. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/models.py')
-rw-r--r--layerindex/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/layerindex/models.py b/layerindex/models.py
index e0d85ea69c..6c5f65f112 100644
--- a/layerindex/models.py
+++ b/layerindex/models.py
@@ -19,6 +19,7 @@ class Branch(models.Model):
bitbake_branch = models.CharField(max_length=50)
short_description = models.CharField(max_length=50, blank=True)
sort_priority = models.IntegerField(blank=True, null=True)
+ updates_enabled = models.BooleanField('Enable updates', default=True, help_text='Enable automatically updating layer metadata for this branch via the update script')
updated = models.DateTimeField(auto_now = True, default = datetime.now)