diff options
author | Ola x Nilsson <ola.x.nilsson@axis.com> | 2016-10-25 13:03:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-13 22:47:29 +0000 |
commit | 7a8726a3662a3909dc6ef6e8d1029d0b1aa938c3 (patch) | |
tree | 8ecc7430cc0d26632f6a2dfd88b7f08070cb8dbb /scripts | |
parent | 1b2b8a0a80de17ea053002fdd124055d2798029a (diff) | |
download | openembedded-core-7a8726a3662a3909dc6ef6e8d1029d0b1aa938c3.tar.gz openembedded-core-7a8726a3662a3909dc6ef6e8d1029d0b1aa938c3.tar.bz2 openembedded-core-7a8726a3662a3909dc6ef6e8d1029d0b1aa938c3.zip |
recipetool: Load plugins in a well defined order
To allow recipetool plugins in one layer to shadow another in a well
defined way, first search BBPATH/lib/recipetool directories and then
scripts/lib/recipetool and load only the first found.
The previous search and load loop would load all found plugins with the
ones found later replacing any found before.
Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/recipetool | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/recipetool b/scripts/recipetool index 1052cd2b22..00c9007b1c 100755 --- a/scripts/recipetool +++ b/scripts/recipetool @@ -78,8 +78,8 @@ def main(): tinfoil = tinfoil_init(False) try: - for path in ([scripts_path] + - tinfoil.config_data.getVar('BBPATH', True).split(':')): + for path in (tinfoil.config_data.getVar('BBPATH', True).split(':') + + [scripts_path]): pluginpath = os.path.join(path, 'lib', 'recipetool') scriptutils.load_plugins(logger, plugins, pluginpath) |