summaryrefslogtreecommitdiffstats
path: root/tools/checkdeps
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 21:31:36 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 21:31:36 +0000
commit38caec4325a29e257bfac9ac1d55d305b82380fe (patch)
treec56c0183f591c65d3faa3982913ef4b7113e15d9 /tools/checkdeps
parenta344237fd545ece5ea0698fad624881dd54dde6e (diff)
downloadchromium_src-38caec4325a29e257bfac9ac1d55d305b82380fe.zip
chromium_src-38caec4325a29e257bfac9ac1d55d305b82380fe.tar.gz
chromium_src-38caec4325a29e257bfac9ac1d55d305b82380fe.tar.bz2
Modify checkdeps.py so that it only looks for files named DEPS, not
directories. BUG=53498 TEST=manually tried checkdeps.py before and after, verified that it now ignores a directory named DEPS Review URL: http://codereview.chromium.org/3155049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57582 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/checkdeps')
-rwxr-xr-xtools/checkdeps/checkdeps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkdeps/checkdeps.py b/tools/checkdeps/checkdeps.py
index 740a581..7c4280f 100755
--- a/tools/checkdeps/checkdeps.py
+++ b/tools/checkdeps/checkdeps.py
@@ -260,7 +260,7 @@ def ApplyDirectoryRules(existing_rules, dir_name):
global_scope = {"From": FromImpl, "Var": _VarImpl(local_scope).Lookup}
deps_file = os.path.join(dir_name, "DEPS")
- if os.path.exists(deps_file):
+ if os.path.isfile(deps_file):
execfile(deps_file, global_scope, local_scope)
elif VERBOSE:
print " No deps file found in", dir_name