From 5b8552896bc2253ee1286928719974a2d4d3c621 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 18 Nov 2007 00:21:37 +0000 Subject: Fix NEEDED logic in vardbapi.aux_get() so that empty NEEDED doesn't trigger unnecessary cache pulls. svn path=/main/trunk/; revision=8520 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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. -- cgit v1.2.3-1-g7c22