summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 92b579286..5c450d3e2 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -5845,7 +5845,8 @@ class dblink:
os.path.join(destroot, filename.lstrip(os.path.sep)))
if not os.path.exists(destfile):
return True
- if self.getcontents() and filename in self.getcontents().keys():
+ pkgfiles = self.getcontents()
+ if pkgfiles and filename in pkgfiles:
return True
return False