locks.py: fix hardlink locks for bug #394195
authorZac Medico <zmedico@gentoo.org>
Wed, 14 Dec 2011 04:24:35 +0000 (20:24 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 14 Dec 2011 04:24:35 +0000 (20:24 -0800)
commit89bcc67e2930a841e1120492634ebc20530bc1d7
tree72354b816b5117a8b522f5bf338f728c0606cf2d
parent9fa915eef028c96b8cde3876fb8bb299c03f9a62
locks.py: fix hardlink locks for bug #394195

This updates the hardlink locking code to support the non-blocking,
lockfile(wantnewlockfile=False), and lockfile(file_object) behaviors
which are used by portage code.
pym/portage/locks.py
pym/portage/package/ebuild/_config/special_env_vars.py
pym/portage/tests/ebuild/test_doebuild_spawn.py
pym/portage/tests/ebuild/test_ipc_daemon.py
pym/portage/tests/emerge/test_simple.py
pym/portage/tests/locks/test_asynchronous_lock.py
pym/portage/tests/locks/test_lock_nonblock.py