summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index c1869df1c2..cab87a4dbb 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -388,9 +388,17 @@ def RUN_COMMAND(cmd,
# make sure we have md5. some systems don't have it
try:
from hashlib import md5
+ try:
+ foo = md5.md5('abcd')
+ except ValueError:
+ raise
except:
try:
import md5
+ try:
+ foo = md5.md5('abcd')
+ except ValueError:
+ raise
except:
import Constants
Constants.SIG_NIL = hash('abcd')