creating it first if necessary."""
if not self._sconsign:
import SCons.Sig
- self._sconsign = SCons.Sig.SConsignFileFactory(self)
+ self._sconsign = SCons.Sig.SConsignFile(self)
return self._sconsign
def srcnode(self):
default_max_drift = 2*24*60*60
#XXX Get rid of the global array so this becomes re-entrant.
-sig_files = {}
+sig_files = []
# 1 means use build signature for derived source files
# 0 means use content signature for derived source files
def write():
global sig_files
- for sig_file in sig_files.values():
+ for sig_file in sig_files:
sig_file.write()
-def SConsignFileFactory( dir, module=None):
- try:
- return sig_files[dir.path]
- except KeyError:
- sig_files[dir.path] = SConsignFile(dir, module)
- return sig_files[dir.path]
-
-
class SConsignEntry:
"""Objects of this type are pickled to the .sconsign file, so it
except:
SCons.Warnings.warn(SCons.Warnings.CorruptSConsignWarning,
"Ignoring corrupt .sconsign file: %s"%self.sconsign)
+ global sig_files
+ sig_files.append(self)
def get(self, filename):
"""