am 81631c6b: Merge "Little fix for headers comparison tool"

* commit '81631c6b3c5ce8c25c216b65014d74b79e0d643e':
  Little fix for headers comparison tool
This commit is contained in:
Andrew Hsieh
2013-10-07 17:38:31 -07:00
committed by Android Git Automerger

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)