Fix dblink.isowner() so it works properly when ROOT!=/. (branches/2.1.2 r6828)
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 04:03:08 +0000 (04:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 04:03:08 +0000 (04:03 -0000)
svn path=/main/branches/2.1.2.9/; revision=7462

pym/portage.py

index d75ebecc4e7760bde834bc86cc61e29a5f142f5d..64c2eecbda92c5f2ea7d5c59ad6a66df64167e18 100644 (file)
@@ -7242,7 +7242,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: