diff --git a/vndk/tools/header-checker/utils/create_reference_dumps.py b/vndk/tools/header-checker/utils/create_reference_dumps.py index bdd0c3fd6..18185c28c 100755 --- a/vndk/tools/header-checker/utils/create_reference_dumps.py +++ b/vndk/tools/header-checker/utils/create_reference_dumps.py @@ -43,8 +43,8 @@ def get_lsdump_paths_from_out(product): assert(os.path.exists(lsdump_paths_file) == True) lsdump_paths = dict() with open(lsdump_paths_file) as f: - for path in f.read().split(' '): - add_to_path_dict(path, lsdump_paths) + for path in f: + add_to_path_dict(path.rstrip(), lsdump_paths) return lsdump_paths def find_and_copy_lib_lsdumps(target, ref_dump_dir_stem, ref_dump_dir_insertion,