diff options
author | Steven Knight <knight@baldmt.com> | 2005-05-07 19:19:41 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-05-07 19:19:41 (GMT) |
commit | 730081593efc2ac5c17def1650ad0b39c4d0e72a (patch) | |
tree | 3379689db64e402fa4720e60ce7ecd1f307ad762 /src/engine/SCons/dblite.py | |
parent | d629cdf3f3b332a1b3c9c9fa550c90b8dd710766 (diff) | |
download | SCons-730081593efc2ac5c17def1650ad0b39c4d0e72a.zip SCons-730081593efc2ac5c17def1650ad0b39c4d0e72a.tar.gz SCons-730081593efc2ac5c17def1650ad0b39c4d0e72a.tar.bz2 |
Make SConsignFile() behavior the default.
Diffstat (limited to 'src/engine/SCons/dblite.py')
-rw-r--r-- | src/engine/SCons/dblite.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/dblite.py b/src/engine/SCons/dblite.py index 00f8274..637e503 100644 --- a/src/engine/SCons/dblite.py +++ b/src/engine/SCons/dblite.py @@ -14,6 +14,9 @@ _open = __builtin__.open # avoid name clash keep_all_files = 00000 ignore_corrupt_dbfiles = 0 +def corruption_warning(filename): + print "Warning: Discarding corrupt database:", filename + if hasattr(types, 'UnicodeType'): def is_string(s): t = type(s) @@ -64,7 +67,7 @@ class dblite: except cPickle.UnpicklingError: if (ignore_corrupt_dbfiles == 0): raise if (ignore_corrupt_dbfiles == 1): - print "Warning: Discarding corrupt database:", self._file_name + corruption_warning(self._file_name) def __del__(self): if (self._needs_sync): |