summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2018-07-23 22:29:13 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-02 10:18:27 +0100
commitcbf41cbe55e948ba1201d334500ea6630a733203 (patch)
tree4fbe26602f66f8947f1bf4e8183c64e6aaa9fb58
parentddfcda7ec3e03c5d9dae1396dfa7d0c2920a3619 (diff)
downloadpoky-cbf41cbe55e948ba1201d334500ea6630a733203.tar.gz
bitbake: bitbake-layers: disable parsing for layerindex commands
These don't need to access recipe information, so let's not waste the user's time parsing all recipes. (Bitbake rev: 6a242a399ae93393c3fc60eda541c1f8f77fed57) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bblayers/layerindex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bblayers/layerindex.py b/bitbake/lib/bblayers/layerindex.py
index 121c7d515a..9f02a9da2e 100644
--- a/bitbake/lib/bblayers/layerindex.py
+++ b/bitbake/lib/bblayers/layerindex.py
@@ -197,12 +197,12 @@ class LayerIndexPlugin(ActionPlugin):
197 self.do_layerindex_fetch(args) 197 self.do_layerindex_fetch(args)
198 198
199 def register_commands(self, sp): 199 def register_commands(self, sp):
200 parser_layerindex_fetch = self.add_command(sp, 'layerindex-fetch', self.do_layerindex_fetch) 200 parser_layerindex_fetch = self.add_command(sp, 'layerindex-fetch', self.do_layerindex_fetch, parserecipes=False)
201 parser_layerindex_fetch.add_argument('-n', '--show-only', help='show dependencies and do nothing else', action='store_true') 201 parser_layerindex_fetch.add_argument('-n', '--show-only', help='show dependencies and do nothing else', action='store_true')
202 parser_layerindex_fetch.add_argument('-b', '--branch', help='branch name to fetch') 202 parser_layerindex_fetch.add_argument('-b', '--branch', help='branch name to fetch')
203 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') 203 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')
204 parser_layerindex_fetch.add_argument('layername', nargs='+', help='layer to fetch') 204 parser_layerindex_fetch.add_argument('layername', nargs='+', help='layer to fetch')
205 205
206 parser_layerindex_show_depends = self.add_command(sp, 'layerindex-show-depends', self.do_layerindex_show_depends) 206 parser_layerindex_show_depends = self.add_command(sp, 'layerindex-show-depends', self.do_layerindex_show_depends, parserecipes=False)
207 parser_layerindex_show_depends.add_argument('-b', '--branch', help='branch name to fetch') 207 parser_layerindex_show_depends.add_argument('-b', '--branch', help='branch name to fetch')
208 parser_layerindex_show_depends.add_argument('layername', nargs='+', help='layer to query') 208 parser_layerindex_show_depends.add_argument('layername', nargs='+', help='layer to query')