summarylogtreecommitdiffstats
path: root/vinetto-hashlib.patch
diff options
context:
space:
mode:
authoroli2015-06-12 22:02:08 +0200
committeroli2015-06-12 22:02:08 +0200
commitcc6695cc841f82e21f68479dabc72e7c89317efb (patch)
tree2f7844c3b07cc06512117db44725db1731b0dc5a /vinetto-hashlib.patch
downloadaur-cc6695cc841f82e21f68479dabc72e7c89317efb.tar.gz
Initial import
Diffstat (limited to 'vinetto-hashlib.patch')
-rw-r--r--vinetto-hashlib.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/vinetto-hashlib.patch b/vinetto-hashlib.patch
new file mode 100644
index 000000000000..2795047a86cc
--- /dev/null
+++ b/vinetto-hashlib.patch
@@ -0,0 +1,53 @@
+--- vinetto
++++ vinetto
+***************
+*** 32,38 ****
+ import sys
+ import os
+ import StringIO
+! import md5
+ import vinreport
+
+ from optparse import OptionParser
+--- 32,38 ----
+ import sys
+ import os
+ import StringIO
+! import hashlib
+ import vinreport
+
+ from optparse import OptionParser
+***************
+*** 149,155 ****
+ outputdir += "/"
+
+ try:
+! import Image
+ PIL = "imported"
+ except ImportError, e:
+ print >> sys.stderr, ""
+--- 149,155 ----
+ outputdir += "/"
+
+ try:
+! from PIL import Image
+ PIL = "imported"
+ except ImportError, e:
+ print >> sys.stderr, ""
+***************
+*** 164,170 ****
+ if htmlrep == True:
+ report = vinreport.HtRep(tDBfname, outputdir, getencodings(), __version__ + " (r" + \
+ __revision__[11:-2] +")")
+! md5tDB = md5.new(thumbsDB).hexdigest()
+ report.SetFileSection(longueur, md5tDB)
+
+ # -----------------------------------------------------------------------------
+--- 164,170 ----
+ if htmlrep == True:
+ report = vinreport.HtRep(tDBfname, outputdir, getencodings(), __version__ + " (r" + \
+ __revision__[11:-2] +")")
+! md5tDB = hashlib.md5(thumbsDB).hexdigest()
+ report.SetFileSection(longueur, md5tDB)
+
+ # -----------------------------------------------------------------------------