summaryrefslogtreecommitdiffstats
path: root/pym/portage/checksum.py
Commit message (Collapse)AuthorAgeFilesLines
* With python-2.6, importing the Crypto.Hash.MD5 and Crypto.Hash.SHA modulesZac Medico2008-11-081-4/+1
| | | | | | | | | | | | 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
* Py3k compatibility patch by Ali Polatel <hawking@g.o>.Zac Medico2008-07-021-1/+4
| | | | | | Don't use the format raise Exception, "string" svn path=/main/trunk/; revision=10890
* Avoid python-2.6 deprecation warnings for md5 and sha modules by tryingZac Medico2008-06-301-3/+13
| | | | | | | 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
* Move prelink tempfile cleanup to the finally block andZac Medico2007-09-271-6/+2
| | | | | | remove unused locking code. svn path=/main/trunk/; revision=7864
* Bug #190179 - Use `prelink --verify filename` to write theZac Medico2007-09-241-5/+9
| | | | | | | | | | 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
* Run pychecker over everything, fix obvious thing slike modules not in use, ↵Alec Warner2007-07-221-3/+3
| | | | | | variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line) svn path=/main/trunk/; revision=7354
* Remove unused imports and unnecessary dict.keys() call.Zac Medico2007-06-241-3/+1
| | | | svn path=/main/trunk/; revision=7011
* add hashlib support for checksum verification, refactor checksum functions ↵Marius Mauch2007-06-231-54/+71
| | | | | | to not look like a complete mess svn path=/main/trunk/; revision=6972
* Remove more unnecessary list generation.Zac Medico2007-06-211-3/+3
| | | | svn path=/main/trunk/; revision=6912
* For bug #173184, handle the CommandNotFound that is produced during ↵Zac Medico2007-04-021-4/+9
| | | | | | uninstallation of prelink. svn path=/main/trunk/; revision=6332
* Make verify_all() return an "insufficient data" error if there is not at ↵Zac Medico2007-02-231-0/+18
| | | | | | least one supported hash type. svn path=/main/trunk/; revision=6055
* Namespace sanitizing, step 3Marius Mauch2007-01-251-1/+1
| | | | svn path=/main/trunk/; revision=5782
* Namespace sanitizing, step 2Marius Mauch2007-01-251-14/+14
| | | | | | | Rename portage.exec to portage.process to avoid syntax errors svn path=/main/trunk/; revision=5780
* Namespace sanitizing, step 1Marius Mauch2007-01-251-0/+219
svn path=/main/trunk/; revision=5778