diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-22 15:12:18 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-22 15:12:18 -0500 |
commit | 5dadc49d86870a8ae82637c998fe1c515f2b9cba (patch) | |
tree | 492843d4bfa1aa7301e5964c7fb1d053bb22f0d4 | |
parent | c5a14e551cc8dc9389c78dc351195847559b306b (diff) | |
download | deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.tar.gz deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.tar.bz2 deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.tar.xz deheader-5dadc49d86870a8ae82637c998fe1c515f2b9cba.zip |
Fix implementation of the exclude option.
-rwxr-xr-x | deheader | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1172,7 +1172,10 @@ class InclusionMap: dirs = filter(lambda x: not x.startswith("."), dirs) for name in files: path = os.path.join(root, name) - if InclusionMap.c_source(path): + if excludes and excludes.search(path): + if verbose > 1: + print "deheader: %s excluded" % root + elif InclusionMap.c_source(path): self.files.append(path) self.depends_on = {} self.requires = {} |