summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node/FS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2008-09-14 16:16:12 (GMT)
committerSteven Knight <knight@baldmt.com>2008-09-14 16:16:12 (GMT)
commitdf1eb6e4b45b70ebf88105a880e2a166f3f04ff4 (patch)
tree3ff280008b6f7365ac0be26e737f087deb110cf4 /src/engine/SCons/Node/FS.py
parentcebf02ff2330cc6927db8fe0bb71429153db70d9 (diff)
downloadSCons-df1eb6e4b45b70ebf88105a880e2a166f3f04ff4.zip
SCons-df1eb6e4b45b70ebf88105a880e2a166f3f04ff4.tar.gz
SCons-df1eb6e4b45b70ebf88105a880e2a166f3f04ff4.tar.bz2
Issue 1693: make the subdirectory in which the .sconsign file will
appear (if it doesn't already exist. (Damyan Pepper, Jim Randall)
Diffstat (limited to 'src/engine/SCons/Node/FS.py')
-rw-r--r--src/engine/SCons/Node/FS.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index 8d11e4e..b8762dc 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -59,6 +59,8 @@ import SCons.Warnings
from SCons.Debug import Trace
+do_store_info = True
+
# The max_drift value: by default, use a cached signature value for
# any file that's been untouched for more than two days.
default_max_drift = 2*24*60*60
@@ -2269,7 +2271,8 @@ class File(Base):
# This accomodates "chained builds" where a file that's a target
# in one build (SConstruct file) is a source in a different build.
# See test/chained-build.py for the use case.
- self.dir.sconsign().store_info(self.name, self)
+ if do_store_info:
+ self.dir.sconsign().store_info(self.name, self)
convert_copy_attrs = [
'bsources',
@@ -2395,7 +2398,7 @@ class File(Base):
try:
sconsign_entry = self.dir.sconsign().get_entry(self.name)
- except (KeyError, OSError):
+ except (KeyError, EnvironmentError):
import SCons.SConsign
sconsign_entry = SCons.SConsign.SConsignEntry()
sconsign_entry.binfo = self.new_binfo()