summaryrefslogtreecommitdiff
path: root/src/engine/SCons/Sig/TimeStamp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Sig/TimeStamp.py')
-rw-r--r--src/engine/SCons/Sig/TimeStamp.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/SCons/Sig/TimeStamp.py b/src/engine/SCons/Sig/TimeStamp.py
index fa9088ca..b786a3de 100644
--- a/src/engine/SCons/Sig/TimeStamp.py
+++ b/src/engine/SCons/Sig/TimeStamp.py
@@ -30,10 +30,11 @@ utility.
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-def current(obj, sig):
- """Return whether the objects timestamp is up-to-date.
+def current(new, old):
+ """Return whether a new timestamp is up-to-date with
+ respect to an old timestamp.
"""
- return obj.get_signature() >= sig
+ return not old is None and new <= old
def collect(signatures):
"""