From: Zac Medico Date: Thu, 30 Apr 2009 07:03:06 +0000 (-0000) Subject: In config.setcpv(), don't add empty values to self.configdict['pkg'] for X-Git-Tag: v2.1.6.12~92 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4695b5fc8d7c9b5e9323cf1d166f9f647b92d541;p=portage.git 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 --- 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