diff options
author | Steven Knight <knight@baldmt.com> | 2002-07-21 07:15:23 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-07-21 07:15:23 (GMT) |
commit | 4656997675841eecc2fd51cad0034eb04152266e (patch) | |
tree | a664f104adf25d723df501dd8956e7422da39991 /src/engine/SCons/Node/Alias.py | |
parent | 392b862b57d335f6ac4539833d03fcecef0628f0 (diff) | |
download | SCons-4656997675841eecc2fd51cad0034eb04152266e.zip SCons-4656997675841eecc2fd51cad0034eb04152266e.tar.gz SCons-4656997675841eecc2fd51cad0034eb04152266e.tar.bz2 |
Refactor current() calculation so the Taskmaster passes the Sig calculator to the Node, instead of going through calc to get to the Node.
Diffstat (limited to 'src/engine/SCons/Node/Alias.py')
-rw-r--r-- | src/engine/SCons/Node/Alias.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/engine/SCons/Node/Alias.py b/src/engine/SCons/Node/Alias.py index c6159da..276750f 100644 --- a/src/engine/SCons/Node/Alias.py +++ b/src/engine/SCons/Node/Alias.py @@ -65,15 +65,17 @@ class Alias(SCons.Node.Node): def set_bsig(self, bsig): """An alias has no signature.""" - pass + self.bsig = None def set_csig(self, csig): """An alias has no signature.""" - pass + self.csig = None - def current(self): + def current(self, calc): """If all of our children were up-to-date, then this Alias was up-to-date, too.""" + # Allow the children to calculate their signatures. + calc.bsig(self) state = 0 for kid in self.children(None): s = kid.get_state() @@ -89,10 +91,10 @@ class Alias(SCons.Node.Node): pass def is_under(self, dir): - # Make Alias nodes get built regardless of - # what directory scons was run from. Alias nodes - # are outside the filesystem: - return 1 + # Make Alias nodes get built regardless of + # what directory scons was run from. Alias nodes + # are outside the filesystem: + return 1 default_ans = AliasNameSpace() |