diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-25 15:28:52 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-12-02 09:16:17 +0100 |
commit | efd3696e70a6603f1a45faa4a172433514f0a487 (patch) | |
tree | b72751ba93b050391db05a8e1be7506836b6d515 /meta-oe/classes/socorro-syms.bbclass | |
parent | 761639b9d7681c81dd69eaf3a37c32791d6e97fd (diff) | |
download | meta-openembedded-efd3696e70a6603f1a45faa4a172433514f0a487.tar.gz |
remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Diffstat (limited to 'meta-oe/classes/socorro-syms.bbclass')
-rw-r--r-- | meta-oe/classes/socorro-syms.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-oe/classes/socorro-syms.bbclass b/meta-oe/classes/socorro-syms.bbclass index 3f6ae6319..cc435aba1 100644 --- a/meta-oe/classes/socorro-syms.bbclass +++ b/meta-oe/classes/socorro-syms.bbclass | |||
@@ -21,10 +21,10 @@ FILES_${PN}-socorro-syms = "/usr/share/socorro-syms" | |||
21 | 21 | ||
22 | python symbol_file_preprocess() { | 22 | python symbol_file_preprocess() { |
23 | 23 | ||
24 | package_dir = d.getVar("PKGD", True) | 24 | package_dir = d.getVar("PKGD") |
25 | breakpad_bin = d.getVar("BREAKPAD_BIN", True) | 25 | breakpad_bin = d.getVar("BREAKPAD_BIN") |
26 | if not breakpad_bin: | 26 | if not breakpad_bin: |
27 | package_name = d.getVar("PN", True) | 27 | package_name = d.getVar("PN") |
28 | bb.error("Package %s depends on Breakpad via socorro-syms. See " | 28 | bb.error("Package %s depends on Breakpad via socorro-syms. See " |
29 | "breakpad.bbclass for instructions on setting up the Breakpad " | 29 | "breakpad.bbclass for instructions on setting up the Breakpad " |
30 | "configuration." % package_name) | 30 | "configuration." % package_name) |
@@ -106,7 +106,7 @@ def repository_path(d, source_file_path): | |||
106 | # child of the build directory TOPDIR. | 106 | # child of the build directory TOPDIR. |
107 | git_root_dir = run_command( | 107 | git_root_dir = run_command( |
108 | "git rev-parse --show-toplevel", os.path.dirname(source_file_path)) | 108 | "git rev-parse --show-toplevel", os.path.dirname(source_file_path)) |
109 | if not git_root_dir.startswith(d.getVar("TOPDIR", True)): | 109 | if not git_root_dir.startswith(d.getVar("TOPDIR")): |
110 | return None | 110 | return None |
111 | 111 | ||
112 | return git_repository_path(source_file_path) | 112 | return git_repository_path(source_file_path) |