From: Zac Medico Date: Sun, 8 May 2011 19:31:07 +0000 (-0700) Subject: treewalk: always initialize "needed" X-Git-Tag: v2.2.0_alpha32~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2091f05a0a5bf495098fcb58ea6912732c1c5a6;p=portage.git treewalk: always initialize "needed" --- 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()