diff options
author | Steven Knight <knight@baldmt.com> | 2004-05-24 11:11:51 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-05-24 11:11:51 (GMT) |
commit | 86e13b6f44ca46079fb23ede280ec3e682f2eb1d (patch) | |
tree | b08bde980825dcc5889aa7bef7190785203280ba /src | |
parent | a29a5edcad30b950b1a1a7cb621065ba05adccb1 (diff) | |
download | SCons-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__.py | 6 |
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) |