Merge "Skip flattened apexes while check_target_files_vintf"
This commit is contained in:
@@ -241,18 +241,22 @@ def PrepareApexDirectory(inp):
|
|||||||
for f in os.listdir(path):
|
for f in os.listdir(path):
|
||||||
logger.info(' adding APEX %s', os.path.basename(f))
|
logger.info(' adding APEX %s', os.path.basename(f))
|
||||||
apex = os.path.join(path, f)
|
apex = os.path.join(path, f)
|
||||||
cmd = [deapexer,
|
if os.path.isdir(apex):
|
||||||
'--debugfs_path', debugfs_path,
|
# TODO(b/242314000) Handle "flattened" apex
|
||||||
'info',
|
pass
|
||||||
apex]
|
else:
|
||||||
info = json.loads(common.RunAndCheckOutput(cmd))
|
cmd = [deapexer,
|
||||||
|
'--debugfs_path', debugfs_path,
|
||||||
|
'info',
|
||||||
|
apex]
|
||||||
|
info = json.loads(common.RunAndCheckOutput(cmd))
|
||||||
|
|
||||||
cmd = [deapexer,
|
cmd = [deapexer,
|
||||||
'--debugfs_path', debugfs_path,
|
'--debugfs_path', debugfs_path,
|
||||||
'extract',
|
'extract',
|
||||||
apex,
|
apex,
|
||||||
os.path.join(outp, info['name'])]
|
os.path.join(outp, info['name'])]
|
||||||
common.RunAndCheckOutput(cmd)
|
common.RunAndCheckOutput(cmd)
|
||||||
|
|
||||||
root_dir_name = 'APEX'
|
root_dir_name = 'APEX'
|
||||||
root_dir = os.path.join(inp, root_dir_name)
|
root_dir = os.path.join(inp, root_dir_name)
|
||||||
|
Reference in New Issue
Block a user