When fetch() is called and there is an existing file with the wrong size that
authorZac Medico <zmedico@gentoo.org>
Mon, 2 Mar 2009 21:50:22 +0000 (21:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 2 Mar 2009 21:50:22 +0000 (21:50 -0000)
commit9c1a530af1edfd787ff8ade710f688d7a9d89167
tree01101e9c5572c4dcb0669b80b5af1e750f392d8c
parent35db7995ca8762d7faa3e2b9b6201f6b0c00fcb2
When fetch() is called and there is an existing file with the wrong size that
is smaller than PORTAGE_FETCH_RESUME_MIN_SIZE, rename the file instead of
deleting it. This is more friendly for cases in which the user is attempting
to regenerate the digest but has not used `ebuild --force foo.ebuild manifest`
like they're supposed to. Thanks to Patrick Lauer <patrick@g.o> for reporting.

svn path=/main/trunk/; revision=12739
pym/portage/__init__.py