From: Zac Medico Date: Sun, 18 Nov 2007 00:21:37 +0000 (-0000) Subject: Fix NEEDED logic in vardbapi.aux_get() so that empty X-Git-Tag: v2.2_pre1~382 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b8552896bc2253ee1286928719974a2d4d3c621;p=portage.git Fix NEEDED logic in vardbapi.aux_get() so that empty NEEDED doesn't trigger unnecessary cache pulls. svn path=/main/trunk/; revision=8520 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 30a75f71d..94f00a8b9 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -519,7 +519,7 @@ class vardbapi(dbapi): if cache_valid: cache_incomplete = self._aux_cache_keys.difference(metadata) needed = metadata.get("NEEDED") - if needed is None or "\n" not in needed: + if needed is None or needed and "\n" not in needed: # Cached value has whitespace filtered, so it has to be pulled # again. This is temporary migration code which can be removed # later, since it only affects users who are running trunk.