Fix dblink.isowner() so it works properly when ROOT!=/.
authorZac Medico <zmedico@gentoo.org>
Wed, 13 Jun 2007 05:53:07 +0000 (05:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 13 Jun 2007 05:53:07 +0000 (05:53 -0000)
svn path=/main/trunk/; revision=6827

pym/portage/dbapi/vartree.py

index a8364e1d160ac774e2166540024d81c61bc186ca..5e91adebcbeb43d6daaaedb1f7f48fc7091e14ee 100644 (file)
@@ -1280,7 +1280,7 @@ class dblink(object):
                        return True
 
                pkgfiles = self.getcontents()
-               if pkgfiles and filename in pkgfiles:
+               if pkgfiles and destfile in pkgfiles:
                        return True
                if pkgfiles:
                        if self._contents_inodes is None: