summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index b8b37236c..3671190d2 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -2592,8 +2592,9 @@ class dblink(object):
if f[0] != "/":
f="/"+f
isowned = False
+ full_path = os.path.join(destroot, f.lstrip(os.path.sep))
for ver in [self] + mypkglist:
- if (ver.isowner(f, destroot) or ver.isprotected(f)):
+ if (ver.isowner(f, destroot) or ver.isprotected(full_path)):
isowned = True
break
if not isowned: