diff options
author | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 19:39:17 +0000 |
---|---|---|
committer | bradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 19:39:17 +0000 |
commit | 303e2d50925f9c95004d7a49175119f58ef4d78c (patch) | |
tree | 44908d1736bf59adba2fd073858dd26fdcaa10a5 /site_scons/site_tools/gather_inputs.py | |
parent | fe1cf28eda7c4d2219e7bb396079a9941fd6edfd (diff) | |
download | chromium_src-303e2d50925f9c95004d7a49175119f58ef4d78c.zip chromium_src-303e2d50925f9c95004d7a49175119f58ef4d78c.tar.gz chromium_src-303e2d50925f9c95004d7a49175119f58ef4d78c.tar.bz2 |
Bringing in sct changes.
Review URL: http://codereview.chromium.org/10210
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'site_scons/site_tools/gather_inputs.py')
-rw-r--r-- | site_scons/site_tools/gather_inputs.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/site_scons/site_tools/gather_inputs.py b/site_scons/site_tools/gather_inputs.py index f299fed..6964bee 100644 --- a/site_scons/site_tools/gather_inputs.py +++ b/site_scons/site_tools/gather_inputs.py @@ -91,13 +91,14 @@ def GatherInputs(env, target, groups=['.*'], exclude_pattern=None): _FindSources(ptrns, lst, all) return + # Get real file (backed by repositories). + rfile = tgt.rfile() + rfile_is_file = rfile.isfile() # See who it matches for pattern, lst in ptrns.items(): - # Get real file (backed by repositories). - rfile = tgt.rfile() # Add files to the list for the first pattern that matches (implicitly, # don't add directories). - if rfile.isfile() and pattern.match(rfile.path): + if rfile_is_file and pattern.match(rfile.path): lst.append(rfile.abspath) break |