summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-05-24 11:11:51 (GMT)
committerSteven Knight <knight@baldmt.com>2004-05-24 11:11:51 (GMT)
commit86e13b6f44ca46079fb23ede280ec3e682f2eb1d (patch)
treeb08bde980825dcc5889aa7bef7190785203280ba /src
parenta29a5edcad30b950b1a1a7cb621065ba05adccb1 (diff)
downloadSCons-86e13b6f44ca46079fb23ede280ec3e682f2eb1d.zip
SCons-86e13b6f44ca46079fb23ede280ec3e682f2eb1d.tar.gz
SCons-86e13b6f44ca46079fb23ede280ec3e682f2eb1d.tar.bz2
Fix use of --debug=explain with SConsignFile(). (Chad Austin)
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Node/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index 75b3a6d..66e1420 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -836,7 +836,11 @@ class Node:
result[k] = s
return result
- osig = dictify(old.bkids, old.bkidsigs)
+ try:
+ osig = dictify(old.bkids, old.bkidsigs)
+ except AttributeError:
+ return "Cannot explain why `%s' is being rebuilt: No previous build information found\n" % self
+
newkids = map(str, self.binfo.bkids)
nsig = dictify(newkids, self.binfo.bkidsigs)