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

pym/portage.py

index 73beaabb09d2950b613d4f460a81904e81c6ca07..260ec5f7ee4e341d759ea2b0bee8cf27ed1404a0 100644 (file)
@@ -7296,7 +7296,7 @@ class dblink:
                        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: