| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This helps to minimize ResourceWarning triggered by ^C with python3.
|
|
|
|
| |
This fixes potential issues similar to those reported in bug #310789.
|
|
|
|
|
| |
Now any callable object will work, which might be helpful for
consumers of the Manifest.checkFileHashes() method.
|
| |
|
|
|
|
|
|
|
|
| |
If multiple digests are available and whirlpool is unaccelerated, then
skip it. This allows extreme performance problems like bug #425046 to
be avoided whenever practical, especially for cases like stage builds
where acceleration may not be available for some hashes due to
minimization of dependencies.
|
| |
|
|
|
|
|
|
| |
The corresponding hashlib issues are fixed in PyPy 1.8:
https://bugs.pypy.org/issue957
|
|
|
|
|
|
|
|
| |
Use a fork to try and PyPy by digesting random data with hashlib
functions. It doesn't look like a bug has been reported upstream for
this yet, so it may or may not be reproducible by others. Anyway, this
allows me to avoid crashing the main PyPy process until I find a real
fix.
|
| |
|
|
|
|
| |
Only spawn prelink if the file has an ELF header.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Offer mhash as a provider for Manifest2 hash generation and validation.
This is important as either of pycrypto or fchksum offer an accelerated
Whirlpool implementation, and hashlib might not offer it. Additionally,
the mhash implementation is accelerated and ships with a rigorious
testsuite.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
| |
Provide SHA512 hash algorithm to be used as new Manifest2 hash.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
| |
Provide public-domain implementation of the Whirlpool hash algorithm to
be used as new Manifest2 hash.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
| |
To be used shortly for WHIRLPOOL as well as RMD160.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| |
|
| |
|
|
|
|
| |
This will fix bug #371987.
|
| |
|
| |
|
|
|
|
| |
svn path=/main/trunk/; revision=15318
|
|
|
|
|
|
| |
both python 2.x and 3.x.
svn path=/main/trunk/; revision=14384
|
|
|
|
|
|
|
|
| |
dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3.
(2to3-3.1 -f dict -nw ${FILES})
svn path=/main/trunk/; revision=14327
|
|
|
|
| |
svn path=/main/trunk/; revision=14315
|
|
|
|
| |
svn path=/main/trunk/; revision=14294
|
|
|
|
|
|
| |
(2to3-3.1 -f numliterals -nw ${FILES})
svn path=/main/trunk/; revision=14292
|
|
|
|
|
|
| |
(2to3-3.1 -f except -nw ${FILES})
svn path=/main/trunk/; revision=14289
|
|
|
|
|
|
| |
usage of _encodings.
svn path=/main/trunk/; revision=14113
|
|
|
|
| |
svn path=/main/trunk/; revision=14067
|
|
|
|
|
|
| |
(if it's not already encoded), and enable errors='strict'.
svn path=/main/trunk/; revision=14060
|
|
|
|
|
|
|
| |
passing to spawn (for prelink), and enable strict encoding behavior in
_perform_md5_merge().
svn path=/main/trunk/; revision=14059
|
|
|
|
|
|
| |
when it falls back to utf8 encoding.
svn path=/main/trunk/; revision=14058
|
|
|
|
|
|
| |
merge/unmerge operations.
svn path=/main/trunk/; revision=14027
|
|
|
|
|
|
| |
_unicode_encode() and _unicode_decode() where appropriate.
svn path=/main/trunk/; revision=14004
|
|
|
|
|
|
|
|
|
|
|
|
| |
from pycrypto triggers warnings since those modules are implemented using
the deprecated md5 and sha modules from python's stdlib. So, in order to
avoid the warning and the inferior hash implementations that come with them,
never use these particular modules from pycrypto. Instead, use hashlib or
directly use stdlib's md5 and sha modules if necessary. Thanks to Markus
Peloquin for reporting.
svn path=/main/trunk/; revision=11828
|
|
|
|
|
|
| |
Don't use the format raise Exception, "string"
svn path=/main/trunk/; revision=10890
|
|
|
|
|
|
|
| |
to import hashlib first and then falling back to the deprecated modules
if necessary. Thanks to ColdWind for reporting.
svn path=/main/trunk/; revision=10854
|
|
|
|
|
|
| |
remove unused locking code.
svn path=/main/trunk/; revision=7864
|
|
|
|
|
|
|
|
|
|
| |
temp file via stdout since --undo fails when run as a normal
non-superuser because it tries to chown the output file. Also,
use mkstemp() to eliminate the need for locking the temp file.
Thanks to Israel G. Lugo <israel.lugo@lugosys.com> for the
initial patch.
svn path=/main/trunk/; revision=7801
|
|
|
|
|
|
| |
variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line)
svn path=/main/trunk/; revision=7354
|
|
|
|
| |
svn path=/main/trunk/; revision=7011
|
|
|
|
|
|
| |
to not look like a complete mess
svn path=/main/trunk/; revision=6972
|
|
|
|
| |
svn path=/main/trunk/; revision=6912
|
|
|
|
|
|
| |
uninstallation of prelink.
svn path=/main/trunk/; revision=6332
|
|
|
|
|
|
| |
least one supported hash type.
svn path=/main/trunk/; revision=6055
|
|
|
|
| |
svn path=/main/trunk/; revision=5782
|
|
|
|
|
|
|
| |
Rename portage.exec to portage.process to avoid syntax errors
svn path=/main/trunk/; revision=5780
|
|
svn path=/main/trunk/; revision=5778
|