diff options
| author | Steven Knight <knight@baldmt.com> | 2002-04-04 09:07:00 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2002-04-04 09:07:00 (GMT) |
| commit | 6603cc0d6643e529da45fef6f85fcc1a0fc02ea4 (patch) | |
| tree | 4a27de7c3fd70e5af0f257ccc73aab38e343f156 /src/engine/SCons/Scanner/__init__.py | |
| parent | a7669bc6a02999a3375c7e732a27ded5f9bb9935 (diff) | |
| download | SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.zip SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.tar.gz SCons-6603cc0d6643e529da45fef6f85fcc1a0fc02ea4.tar.bz2 | |
Fix --debug=tree for directory targets (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Scanner/__init__.py')
| -rw-r--r-- | src/engine/SCons/Scanner/__init__.py | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/engine/SCons/Scanner/__init__.py b/src/engine/SCons/Scanner/__init__.py index 53c67e4..b2e04a3 100644 --- a/src/engine/SCons/Scanner/__init__.py +++ b/src/engine/SCons/Scanner/__init__.py @@ -97,7 +97,7 @@ class Base: self.skeys = skeys self.node_factory = node_factory - def scan(self, node, env): + def scan(self, node, env, target): """ This method scans a single object. 'node' is the node that will be passed to the scanner function, and 'env' is the @@ -106,9 +106,9 @@ class Base: """ if not self.argument is _null: - list = self.function(node, env, self.argument) + list = self.function(node, env, target, self.argument) else: - list = self.function(node, env) + list = self.function(node, env, target) kw = {} if hasattr(node, 'dir'): kw['directory'] = node.dir @@ -119,16 +119,6 @@ class Base: nodes.append(l) return nodes - def instance(self, env): - """ - Return an instance of a Scanner object for use in scanning. - - In the base class, we just return the scanner itself. - Other Scanner classes may use this to clone copies and/or - return unique instances as needed. - """ - return self - def __cmp__(self, other): return cmp(self.__dict__, other.__dict__) @@ -143,7 +133,7 @@ class Recursive(Base): list of all dependencies. """ - def scan(self, node, env): + def scan(self, node, env, target): """ This method does the actual scanning. 'node' is the node that will be passed to the scanner function, and 'env' is the @@ -158,7 +148,7 @@ class Recursive(Base): while nodes: n = nodes.pop(0) d = filter(lambda x, seen=seen: not seen.has_key(x), - Base.scan(self, n, env)) + Base.scan(self, n, env, target)) if d: deps.extend(d) nodes.extend(d) |
