summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-15 21:26:08 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-15 21:26:08 (GMT)
commitc4d35e362f544b427d400f4fb1f95da2236976ef (patch)
tree0097695ec792aa5410cda02d3fd8ef4d4a20d2d0 /src
parentf90f72f7e364490fa345681b863cbec55555fa40 (diff)
downloadSCons-c4d35e362f544b427d400f4fb1f95da2236976ef.zip
SCons-c4d35e362f544b427d400f4fb1f95da2236976ef.tar.gz
SCons-c4d35e362f544b427d400f4fb1f95da2236976ef.tar.bz2
Fix a --implicit-cache when a file has no implicit deps and its source is generated. (Anthony Roach)
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES.txt3
-rw-r--r--src/engine/SCons/Sig/__init__.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt
index 5dd578e..ad07cf7 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -37,6 +37,9 @@ RELEASE 0.08 -
- Fix --implicit-cache causing redundant rebuilds when the header
file list changed.
+ - Fix --implicit-cache when a file has no implicit dependencies and
+ its source is generated.
+
From Zed Shaw:
- Add an Append() method to Environments, to append values to
diff --git a/src/engine/SCons/Sig/__init__.py b/src/engine/SCons/Sig/__init__.py
index 386c9e5..40ee459 100644
--- a/src/engine/SCons/Sig/__init__.py
+++ b/src/engine/SCons/Sig/__init__.py
@@ -82,13 +82,13 @@ class SConsignEntry:
return '%s %s %s %s' % (timestamp, bsig, csig, implicit)
def get_implicit(self):
- if self.implicit is None:
+ if not self.implicit:
return None
else:
return string.split(self.implicit, '\0')
def set_implicit(self, implicit):
- if implicit is None:
+ if not implicit:
self.implicit = None
else:
self.implicit = string.join(map(str, implicit), '\0')