git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1588a8d
)
build: replace h_file when replacing md5
author
Thomas Nagy
<tnagy1024@gmail.com>
Thu, 25 Mar 2010 01:18:16 +0000
(12:18 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 6 Apr 2010 10:27:05 +0000
(20:27 +1000)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
buildtools/wafsamba/samba_utils.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_utils.py
b/buildtools/wafsamba/samba_utils.py
index b1e62f1fce3ba04ac60b1c84b9ea9cb613367a74..1c597f4e078ec1bc5b7b401ace459871a7e514bd 100644
(file)
--- a/
buildtools/wafsamba/samba_utils.py
+++ b/
buildtools/wafsamba/samba_utils.py
@@
-362,3
+362,11
@@
except:
def hexdigest(self):
return self.digest().encode('hex')
Utils.md5 = replace_md5
+ def h_file(filename):
+ f = open(filename, 'rb')
+ m = replace_md5()
+ while (filename):
+ filename = f.read(100000)
+ m.update(filename)
+ f.close()
+ return m.digest()