Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 308835 Details for
Bug 411897
Fail correctly in perform_checksum
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fail correctly when not finding the requested hash function in perform_checksum
failbetter.patch (text/plain), 706 bytes, created by
Greg Turner
on 2012-04-13 23:34:24 UTC
(
hide
)
Description:
Fail correctly when not finding the requested hash function in perform_checksum
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2012-04-13 23:34:24 UTC
Size:
706 bytes
patch
obsolete
>diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py >index 73e01b5..90260b4 100644 >--- a/pym/portage/checksum.py >+++ b/pym/portage/checksum.py >@@ -301,8 +301,9 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0): > prelink_capable = False > try: > if hashname not in hashfunc_map: >- raise portage.exception.DigestException(hashname + \ >- " hash function not available (needs dev-python/pycrypto)") >+ raise portage.exception.DigestException( >+ "% hash function not available (needs dev-python/pycrypto)" >+ % hashname ) > myhash, mysize = hashfunc_map[hashname](myfilename) > except (OSError, IOError) as e: > if e.errno in (errno.ENOENT, errno.ESTALE):
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 411897
:
308835
|
308839