scripts: drop True option to getVar calls

Search made with the following regex: getVar ?\((.*), True\).

(From OE-Core rev: b848c3cb495905605283c57c79f2ed8ca17758db)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ming Liu 2017-09-24 06:04:24 +02:00 committed by Richard Purdie
parent 307f25c23e
commit 5c67faff20
2 changed files with 8 additions and 8 deletions

View File

@ -46,16 +46,16 @@ def _get_layer_collections(layer_path, lconf=None, data=None):
raise LayerError(exc) raise LayerError(exc)
ldata.expandVarref('LAYERDIR') ldata.expandVarref('LAYERDIR')
collections = (ldata.getVar('BBFILE_COLLECTIONS', True) or '').split() collections = (ldata.getVar('BBFILE_COLLECTIONS') or '').split()
if not collections: if not collections:
name = os.path.basename(layer_path) name = os.path.basename(layer_path)
collections = [name] collections = [name]
collections = {c: {} for c in collections} collections = {c: {} for c in collections}
for name in collections: for name in collections:
priority = ldata.getVar('BBFILE_PRIORITY_%s' % name, True) priority = ldata.getVar('BBFILE_PRIORITY_%s' % name)
pattern = ldata.getVar('BBFILE_PATTERN_%s' % name, True) pattern = ldata.getVar('BBFILE_PATTERN_%s' % name)
depends = ldata.getVar('LAYERDEPENDS_%s' % name, True) depends = ldata.getVar('LAYERDEPENDS_%s' % name)
collections[name]['priority'] = priority collections[name]['priority'] = priority
collections[name]['pattern'] = pattern collections[name]['pattern'] = pattern
collections[name]['depends'] = depends collections[name]['depends'] = depends

View File

@ -178,13 +178,13 @@ def deploy(args, config, basepath, workspace):
if args.strip and not args.dry_run: if args.strip and not args.dry_run:
# Fakeroot copy to new destination # Fakeroot copy to new destination
srcdir = recipe_outdir srcdir = recipe_outdir
recipe_outdir = os.path.join(rd.getVar('WORKDIR', True), 'deploy-target-stripped') recipe_outdir = os.path.join(rd.getVar('WORKDIR'), 'deploy-target-stripped')
if os.path.isdir(recipe_outdir): if os.path.isdir(recipe_outdir):
bb.utils.remove(recipe_outdir, True) bb.utils.remove(recipe_outdir, True)
exec_fakeroot(rd, "cp -af %s %s" % (os.path.join(srcdir, '.'), recipe_outdir), shell=True) exec_fakeroot(rd, "cp -af %s %s" % (os.path.join(srcdir, '.'), recipe_outdir), shell=True)
os.environ['PATH'] = ':'.join([os.environ['PATH'], rd.getVar('PATH', True) or '']) os.environ['PATH'] = ':'.join([os.environ['PATH'], rd.getVar('PATH') or ''])
oe.package.strip_execs(args.recipename, recipe_outdir, rd.getVar('STRIP', True), rd.getVar('libdir', True), oe.package.strip_execs(args.recipename, recipe_outdir, rd.getVar('STRIP'), rd.getVar('libdir'),
rd.getVar('base_libdir', True)) rd.getVar('base_libdir'))
filelist = [] filelist = []
ftotalsize = 0 ftotalsize = 0