From 4695b5fc8d7c9b5e9323cf1d166f9f647b92d541 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Apr 2009 07:03:06 +0000 Subject: [PATCH] In config.setcpv(), don't add empty values to self.configdict['pkg'] for keys that don't exist in the given dict. (trunk r13310) svn path=/main/branches/2.1.6/; revision=13481 --- pym/portage/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index a0b93747c..deb150227 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2120,7 +2120,9 @@ class config(object): if mydb: if not hasattr(mydb, "aux_get"): for k in aux_keys: - pkg_configdict[k] = mydb.get(k, '') + v = mydb.get(k) + if v is not None: + pkg_configdict[k] = v else: for k, v in izip(aux_keys, mydb.aux_get(self.mycpv, aux_keys)): pkg_configdict[k] = v -- 2.26.2