summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-27 16:16:05 +0200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-27 16:16:05 +0200
commitba84c81adf658fbb6b19223addb9a2b92ea756e5 (patch)
tree4a0d021bed9791d4d04b7c592d331fe8bd510fc9
parent20cbb94b096c496007244c45c791f4c920b81ed2 (diff)
downloadbitbake-contrib-paule/bitbake-setup.zip
bitbake-contrib-paule/bitbake-setup.tar.gz
bitbake-contrib-paule/bitbake-setup.tar.bz2
bitbake-layers: disable parsing for layerindex commandspaule/bitbake-setup
These don't need to access recipe information, so let's not waste the user's time parsing all recipes. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--lib/bblayers/layerindex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bblayers/layerindex.py b/lib/bblayers/layerindex.py
index 7248b46..46b281d 100644
--- a/lib/bblayers/layerindex.py
+++ b/lib/bblayers/layerindex.py
@@ -132,12 +132,12 @@ class LayerIndexPlugin(ActionPlugin):
self.do_layerindex_fetch(args)
def register_commands(self, sp):
- parser_layerindex_fetch = self.add_command(sp, 'layerindex-fetch', self.do_layerindex_fetch)
+ parser_layerindex_fetch = self.add_command(sp, 'layerindex-fetch', self.do_layerindex_fetch, parserecipes=False)
parser_layerindex_fetch.add_argument('-n', '--show-only', help='show dependencies and do nothing else', action='store_true')
parser_layerindex_fetch.add_argument('-b', '--branch', help='branch name to fetch (default %(default)s)')
parser_layerindex_fetch.add_argument('-i', '--ignore', help='assume the specified layers do not need to be fetched/added (separate multiple layers with commas, no spaces)', metavar='LAYER')
parser_layerindex_fetch.add_argument('layername', nargs='+', help='layer to fetch')
- parser_layerindex_show_depends = self.add_command(sp, 'layerindex-show-depends', self.do_layerindex_show_depends)
+ parser_layerindex_show_depends = self.add_command(sp, 'layerindex-show-depends', self.do_layerindex_show_depends, parserecipes=False)
parser_layerindex_show_depends.add_argument('-b', '--branch', help='branch name to fetch (default %(default)s)')
parser_layerindex_show_depends.add_argument('layername', nargs='+', help='layer to query')