From e89a84fdff4ff05f87c08a1026e25dbc94e85055 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 21 Mar 2018 01:11:06 +0500 Subject: [PATCH] oe.external: drop unneeded ,True from getVars Signed-off-by: Christopher Larson --- lib/oe/external.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/oe/external.py b/lib/oe/external.py index e03666c..3cf7d31 100644 --- a/lib/oe/external.py +++ b/lib/oe/external.py @@ -5,10 +5,10 @@ import bb def run(d, cmd, *args): - topdir = d.getVar('TOPDIR', True) - toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN', True) + topdir = d.getVar('TOPDIR') + toolchain_path = d.getVar('EXTERNAL_TOOLCHAIN') if toolchain_path: - target_prefix = d.getVar('EXTERNAL_TARGET_SYS', True) + '-' + target_prefix = d.getVar('EXTERNAL_TARGET_SYS') + '-' path = os.path.join(toolchain_path, 'bin', target_prefix + cmd) args = [path] + list(args) @@ -26,7 +26,7 @@ def get_file_search_metadata(d): '''Given the metadata, return the mirrors and sysroots to operate against.''' mirrors = [] - for entry in d.getVar('FILES_MIRRORS', True).replace('\\n', '\n').split('\n'): + for entry in d.getVar('FILES_MIRRORS').replace('\\n', '\n').split('\n'): entry = entry.strip() if not entry: continue @@ -34,7 +34,7 @@ def get_file_search_metadata(d): mirrors.append(('^' + re.escape(pathname), subst)) source_paths = [os.path.realpath(p) - for p in d.getVar('EXTERNAL_INSTALL_SOURCE_PATHS', True).split()] + for p in d.getVar('EXTERNAL_INSTALL_SOURCE_PATHS').split()] return source_paths, mirrors @@ -44,9 +44,9 @@ def gather_pkg_files(d): this recipe.''' import itertools files = [] - for pkg in d.getVar('PACKAGES', True).split(): - files = itertools.chain(files, (d.getVar('FILES_{}'.format(pkg), True) or '').split()) - files = itertools.chain(files, d.getVar('EXTERNAL_EXTRA_FILES', True).split()) + for pkg in d.getVar('PACKAGES').split(): + files = itertools.chain(files, (d.getVar('FILES_{}'.format(pkg)) or '').split()) + files = itertools.chain(files, d.getVar('EXTERNAL_EXTRA_FILES').split()) return files