[Python-Dev] PEP 376 : Changing the .egg-info structure
Jeroen Ruigrok van der Werven
asmodai at in-nomine.org
Fri May 15 08:32:20 CEST 2009
-On [20090515 06:59], P.J. Eby (pje at telecommunity.com) wrote:
>I'd like to reiterate my suggestion that the uninstall record include
>size and checksum information, ala PEP 262's "FILES" section. This
>would allow the uninstall function to validate whether a file has
>been modified, and thus prevent uninstalling a locally-modified file,
>or a file installed in some other way.
Agreed. Within FreeBSD's ports the installed package registration gets a MD5
hash per file recorded. Size is less interesting though, since essentially
this information is encapsulated within the hash. Remove one byte from the
file and your hash is already different. And the case of a collision for
this kind of registration is sufficiently small to need the size
information.
And if you're worried about the MD5 collision space, which for this use case
ought to be large enough, you could always settle for SHA1.
--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
What's one man's poison, is another's meat or drink...
More information about the Python-Dev
mailing list