treewalk: always initialize "needed"
authorZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 19:31:07 +0000 (12:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 May 2011 19:31:07 +0000 (12:31 -0700)
pym/portage/dbapi/vartree.py

index a4a42032871f30ac84f2a7e6ab39676014b03936..28b67f0e66b36cd4fd7f26e66baa0ac9ab195c73 100644 (file)
@@ -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()