Commit 83c339a5 authored by kinaba@chromium.org's avatar kinaba@chromium.org

Fix checkdeps.py to check all the source directories in git checkouts.

BUG=33165
TEST=Manual: add an invalid #include in ppapi/examples/ime/ime.cc and
verify it to be correctly warned.


Review URL: http://codereview.chromium.org/8416016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107668 0039d316-1c4b-4281-b951-d872f2087c98
parent 6ddc7125
...@@ -416,7 +416,10 @@ def GetGitSourceDirectory(root): ...@@ -416,7 +416,10 @@ def GetGitSourceDirectory(root):
pipes.quote(root)) pipes.quote(root))
for line in popen_out.readlines(): for line in popen_out.readlines():
dir_name = os.path.join(root, os.path.dirname(line)) dir_name = os.path.join(root, os.path.dirname(line))
git_source_directory.add(dir_name) # Add the directory as well as all the parent directories.
while dir_name != root:
git_source_directory.add(dir_name)
dir_name = os.path.dirname(dir_name)
git_source_directory.add(root) git_source_directory.add(root)
return git_source_directory return git_source_directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment