[jhbuild] Make it work with SHA256
- From: Olav Vitters <ovitters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] Make it work with SHA256
- Date: Mon, 20 Jul 2009 15:02:40 +0000 (UTC)
commit e8efb517a3e5e65214396a21f5f4b8fa8389427b
Author: Olav Vitters <olav bkor dhs org>
Date: Mon Jul 20 17:02:10 2009 +0200
Make it work with SHA256
jhbuild/versioncontrol/tarball.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/versioncontrol/tarball.py b/jhbuild/versioncontrol/tarball.py
index 4df6237..dc85d62 100644
--- a/jhbuild/versioncontrol/tarball.py
+++ b/jhbuild/versioncontrol/tarball.py
@@ -71,7 +71,7 @@ class TarballRepository(Repository):
module = urlparse.urljoin(self.href, module)
if size is not None:
size = int(size)
- if md5sum and (not hash or hashlib is md5):
+ if md5sum and (not hash or hashlib.__name__ == 'md5'):
hash = 'md5:' + md5sum
return TarballBranch(self, module=module, version=version,
checkoutdir=checkoutdir,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]