Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=1410c6b4d1bf789cee03d08a17ac524ae2030690

commit 1410c6b4d1bf789cee03d08a17ac524ae2030690
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Thu Oct 22 12:46:49 2009 +0200

gdata.py-1.2.4-2-i686

- add python26-warning.patch

diff --git a/source/devel-extra/gdata.py/FrugalBuild 
b/source/devel-extra/gdata.py/FrugalBuild
index c2a27dd..eac008a 100644
--- a/source/devel-extra/gdata.py/FrugalBuild
+++ b/source/devel-extra/gdata.py/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=gdata.py
pkgver=1.2.4
-pkgrel=1
+pkgrel=2
pkgdesc="Provide a protocol for reading and writing data on the web."
_F_googlecode_dirname="gdata-python-client"
Finclude googlecode
@@ -11,4 +11,6 @@ depends=('python>=2.6')
groups=('devel-extra')
archs=('i686' 'x86_64')
up2date="$up2date |sed 's/.tar.gz.*//'"
-sha1sums=('5b6804cfb3bced02c7e9f102fa2a714140f62fd8')
+source=($source python26-warning.patch)
+sha1sums=('5b6804cfb3bced02c7e9f102fa2a714140f62fd8' \
+          '5468be7bab1ed79cd1306ad83dd93664da2d09e5')
diff --git a/source/devel-extra/gdata.py/python26-warning.patch 
b/source/devel-extra/gdata.py/python26-warning.patch
new file mode 100644
index 0000000..4d37bb1
--- /dev/null
+++ b/source/devel-extra/gdata.py/python26-warning.patch
@@ -0,0 +1,22 @@
+diff --git a/src/gdata/tlslite/utils/cryptomath.py 
b/src/gdata/tlslite/utils/cryptomath.py
+index 51d6dff..67fb398 100755
+--- a/src/gdata/tlslite/utils/cryptomath.py
++++ b/src/gdata/tlslite/utils/cryptomath.py
+@@ -6,7 +6,7 @@ import os
+ import math
+ import base64
+ import binascii
+-import sha
++import hashlib
+
+ from compat import *
+
+@@ -195,7 +195,7 @@ def numBytes(n):
+     return int(math.ceil(bits / 8.0))
+
+ def hashAndBase64(s):
+-    return stringToBase64(sha.sha(s).digest())
++    return stringToBase64(hashlib.sha1(s).digest())
+
+ def getBase64Nonce(numChars=22): #defaults to an 132 bit nonce
+     bytes = getRandomBytes(numChars)
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to