diff options
author | Steven Knight <knight@baldmt.com> | 2002-05-17 14:29:50 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-05-17 14:29:50 (GMT) |
commit | 07f253a52bd76d55c41a36480eb38df44338afb3 (patch) | |
tree | 0e49782ac54440187f9d513848b0c7c6ee7b81ab /src/engine/SCons/Sig | |
parent | 487b06bf45f268ed417aa655fa7b90419f25be2e (diff) | |
download | SCons-07f253a52bd76d55c41a36480eb38df44338afb3.zip SCons-07f253a52bd76d55c41a36480eb38df44338afb3.tar.gz SCons-07f253a52bd76d55c41a36480eb38df44338afb3.tar.bz2 |
Fallback to timestamp signatures when MD5 is not available. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Sig')
-rw-r--r-- | src/engine/SCons/Sig/__init__.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/engine/SCons/Sig/__init__.py b/src/engine/SCons/Sig/__init__.py index 40ee459..193a326 100644 --- a/src/engine/SCons/Sig/__init__.py +++ b/src/engine/SCons/Sig/__init__.py @@ -244,8 +244,14 @@ class Calculator: content signatures. (defaults to 2 days) """ if module is None: - import MD5 - self.module = MD5 + try: + import MD5 + self.module = MD5 + except ImportError: + # fallback on timestamp signatures if MD5 is not available + # XXX add a warning message here + import TimeStamp + self.module = TimeStamp else: self.module = module self.max_drift = max_drift |