From 5dadc49d86870a8ae82637c998fe1c515f2b9cba Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 22 Dec 2010 15:12:18 -0500 Subject: Fix implementation of the exclude option. --- deheader | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deheader b/deheader index a52e401..934b382 100755 --- a/deheader +++ b/deheader @@ -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 = {} -- cgit v1.2.3-70-g09d2