Merge "Little fix for headers comparison tool"

This commit is contained in:
Andrew Hsieh
2013-10-08 00:35:43 +00:00
committed by Gerrit Code Review

View File

@@ -152,7 +152,8 @@ class BionicSysincludes:
path_bionic = os.path.join(self.bionic_root, arch_root, 'include', root)
## for every header that both in Bionic and sysroot ##
for include in pack[1]:
if include in self.sysincludes[arch][root]:
if (root in self.sysincludes[arch]) and \
(include in self.sysincludes[arch][root]):
## completing paths ##
platform = self.sysincludes[arch][root][include][0]
file_origin = os.path.join(path_bionic, include)