From 4a77dba61d86ddf23ad65d6aeefc184cc3fb150f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 May 2011 12:31:07 -0700 Subject: [PATCH] treewalk: always initialize "needed" --- pym/portage/dbapi/vartree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 7bef2fcff..156defc55 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3292,9 +3292,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() -- 2.26.2