summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-05-08 12:31:07 -0700
committerZac Medico <zmedico@gentoo.org>2011-05-08 12:31:07 -0700
commitf2091f05a0a5bf495098fcb58ea6912732c1c5a6 (patch)
tree854e2d8f89365799b1bb3af3df897d362d5eea62
parentd9f3f0bb9112b60b38fef6d9cd73eb4f0beb8950 (diff)
downloadportage-f2091f05a0a5bf495098fcb58ea6912732c1c5a6.tar.gz
portage-f2091f05a0a5bf495098fcb58ea6912732c1c5a6.tar.bz2
portage-f2091f05a0a5bf495098fcb58ea6912732c1c5a6.zip
treewalk: always initialize "needed"
-rw-r--r--pym/portage/dbapi/vartree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index a4a420328..28b67f0e6 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -3324,9 +3324,9 @@ class dblink(object):
linkmap = self.vartree.dbapi._linkmap
plib_registry = self.vartree.dbapi._plib_registry
include_file = None
- if linkmap is None or plib_registry is None:
- preserve_paths = None
- else:
+ preserve_paths = None
+ needed = None
+ if not (linkmap is None or plib_registry is None):
plib_registry.lock()
try:
plib_registry.load()