aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-03-09 08:48:01 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-03-14 15:19:53 +1300
commit51614fe5a0594606ddd1fd718c00d11d8e9c72fe (patch)
tree44a7c8aeb0cc12f23e129b20ab1b58a0ffe8a27f /layerindex/update.py
parent2919424f89d898849fb6112f1393f1aac2ca1563 (diff)
downloadopenembedded-core-contrib-51614fe5a0594606ddd1fd718c00d11d8e9c72fe.tar.gz
layerindex: add "No update" status to LayerItem
Add a status for a layer indicating it should not be updated. I don't expect this to be widely used (and is only settable from the admin interface) but would be useful if you have a legacy sub-layer that you want to prevent from being visible on certain branches - it will prevent the update script from doing anything with the layer and thus avoid branch records from being auto-created on branches where you've deleted it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/layerindex/update.py b/layerindex/update.py
index e5987bbad2..d5c56cd266 100755
--- a/layerindex/update.py
+++ b/layerindex/update.py
@@ -157,6 +157,7 @@ def main():
logger.error('No layers matching specified query "%s"' % options.layers)
sys.exit(1)
else:
+ # We deliberately exclude status == 'X' ("no update") here
layerquery = LayerItem.objects.filter(classic=False).filter(status='P')
if layerquery.count() == 0:
logger.info("No published layers to update")