summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Sig
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-07-21 05:05:04 (GMT)
committerSteven Knight <knight@baldmt.com>2003-07-21 05:05:04 (GMT)
commit6c127c28c6924d7e5b8a0b8e1f2e348f6e53107c (patch)
treeeb080c0e9d4959bd1015f47a303dfbe2ebe9195b /src/engine/SCons/Sig
parent67a5558f919e9504d0c8c564d72458cd32fac906 (diff)
downloadSCons-6c127c28c6924d7e5b8a0b8e1f2e348f6e53107c.zip
SCons-6c127c28c6924d7e5b8a0b8e1f2e348f6e53107c.tar.gz
SCons-6c127c28c6924d7e5b8a0b8e1f2e348f6e53107c.tar.bz2
Fix the return value of the base Node.get_prevsiginfo(). (Gary Oberbrunner)
Diffstat (limited to 'src/engine/SCons/Sig')
-rw-r--r--src/engine/SCons/Sig/__init__.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/engine/SCons/Sig/__init__.py b/src/engine/SCons/Sig/__init__.py
index 36145cb..b4b70b4 100644
--- a/src/engine/SCons/Sig/__init__.py
+++ b/src/engine/SCons/Sig/__init__.py
@@ -103,6 +103,11 @@ class _SConsign:
global sig_files
sig_files.append(self)
+ # A null .sconsign entry. We define this here so that it will
+ # be easy to keep this in sync if/whenever we change the type of
+ # information returned by the get() method, below.
+ null_siginfo = (None, None, None)
+
def get(self, filename):
"""
Get the .sconsign entry for a file
@@ -321,15 +326,15 @@ class Calculator:
return csig
if self.max_drift >= 0:
- info = node.get_prevsiginfo()
+ oldtime, oldbsig, oldcsig = node.get_prevsiginfo()
else:
- info = None
+ oldtime, oldbsig, oldcsig = _SConsign.null_siginfo
mtime = node.get_timestamp()
- if (info and info[0] and info[2] and info[0] == mtime):
+ if (oldtime and oldcsig and oldtime == mtime):
# use the signature stored in the .sconsign file
- csig = info[2]
+ csig = oldcsig
# Set the csig here so it doesn't get recalculated unnecessarily
# and so it's set when the .sconsign file gets written
cache.set_csig(csig)