Do not hardlink files unless they are in the same
authorZac Medico <zmedico@gentoo.org>
Mon, 5 Jan 2009 22:00:39 +0000 (22:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 5 Jan 2009 22:00:39 +0000 (22:00 -0000)
commit4538b5dcb9e9d28e67df6e1b91b97551a577da21
tree8eeadd76bc051a58b68f5bfef82cf73b4dbffece
parent3557acfd22c53721e315f88417d3469a0d0aac83
Do not hardlink files unless they are in the same
directory, since otherwise tar may not be able to
extract a tarball of the resulting hardlinks due to
'Invalid cross-device link' errors (depends on layout of
mount points). Also, don't hardlink zero-byte files since
it doesn't save any space. Thanks to Daniel Robbins for
reporting these issues which were noticed by funtoo users
when attempting to extract stage tarballs.

svn path=/main/trunk/; revision=12381
pym/portage/dbapi/vartree.py