Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 224315 Details for
Bug 308299
app-arch/ipkg-utils: Verify and potentially improve Python-related code
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ipkg-utils-1.7-hashlib_update.patch
ipkg-utils-1.7-hashlib_update.patch (text/plain), 693 bytes, created by
James Rowe
on 2010-03-20 04:23:55 UTC
(
hide
)
Description:
ipkg-utils-1.7-hashlib_update.patch
Filename:
MIME Type:
Creator:
James Rowe
Created:
2010-03-20 04:23:55 UTC
Size:
693 bytes
patch
obsolete
>diff --git i/ipkg.py w/ipkg.py >index a4f440e..9aadf45 100644 >--- i/ipkg.py >+++ w/ipkg.py >@@ -36,12 +36,18 @@ import tempfile > import os > import sys > import glob >-import md5 > import re > import string > import commands > from stat import ST_SIZE > >+try: >+ from hashlib import md5 >+except ImportError: >+ import md5 >+ md5 = md5.new >+ >+ > class Package: > """A class for creating objects to manipulate (e.g. create) ipkg > packages.""" >@@ -77,7 +83,7 @@ class Package: > > # compute the MD5. > f = open(fn, "r") >- sum = md5.new() >+ sum = md5() > while 1: > data = f.read(1024) > if not data: break
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 308299
:
224313
|
224315
|
224317