diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-23 13:22:02 +0000 |
---|---|---|
committer | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-05 15:36:27 +0000 |
commit | 65250a5537da220dff662269cb81d086b66c2ace (patch) | |
tree | c0b1fc6c9e8471346c416b964eff583f51d26589 /scripts/lib/devtool/search.py | |
parent | 11063a01d4511b2688ea7ba2d7359e4e07328c66 (diff) | |
download | openembedded-core-contrib-65250a5537da220dff662269cb81d086b66c2ace.tar.gz |
meta: 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 'scripts/lib/devtool/search.py')
-rw-r--r-- | scripts/lib/devtool/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/search.py b/scripts/lib/devtool/search.py index b44bed7f6f..054985b85d 100644 --- a/scripts/lib/devtool/search.py +++ b/scripts/lib/devtool/search.py @@ -31,7 +31,7 @@ def search(args, config, basepath, workspace): tinfoil = setup_tinfoil(config_only=False, basepath=basepath) try: - pkgdata_dir = tinfoil.config_data.getVar('PKGDATA_DIR', True) + pkgdata_dir = tinfoil.config_data.getVar('PKGDATA_DIR') defsummary = tinfoil.config_data.getVar('SUMMARY', False) or '' keyword_rc = re.compile(args.keyword) @@ -70,7 +70,7 @@ def search(args, config, basepath, workspace): if match: rd = parse_recipe(config, tinfoil, fn, True) - summary = rd.getVar('SUMMARY', True) + summary = rd.getVar('SUMMARY') if summary == rd.expand(defsummary): summary = '' print("%s %s" % (fn.ljust(20), summary)) |