Optimize dblink.isowner() to use fewer stat calls by doing a basename
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 09:32:04 +0000 (09:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 09:32:04 +0000 (09:32 -0000)
commitd2d8255c09ea64b7f1a1640c400fdcc531f3f435
treed2d83339ac1729e570567e341d83349c0cdc6a03
parentf2b5184ea4b8231e7bec393326a8027e5e024c54
Optimize dblink.isowner() to use fewer stat calls by doing a basename
comparison to try and eliminate the file before resorting to inode
comparison. This speeds up the `portageq owners` command as well as
the search that is done when collision-protect finds a collision.
(trunk r9363)

svn path=/main/branches/2.1.2/; revision=9534
pym/portage.py