From 2454baf83b82fa60bca173eb701aae56f3b65a89 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 25 Mar 2010 12:26:50 +1100 Subject: build: need to set h_file on Utils --- buildtools/wafsamba/samba_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index 1c597f4e07..382a1b1e84 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -361,8 +361,7 @@ except: return str(self.val) def hexdigest(self): return self.digest().encode('hex') - Utils.md5 = replace_md5 - def h_file(filename): + def replace_h_file(filename): f = open(filename, 'rb') m = replace_md5() while (filename): @@ -370,3 +369,5 @@ except: m.update(filename) f.close() return m.digest() + Utils.md5 = replace_md5 + Utils.h_file = replace_h_file -- cgit