projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8d1f19
)
In config.setcpv(), don't add empty values to self.configdict['pkg'] for
author
Zac Medico
<zmedico@gentoo.org>
Fri, 10 Apr 2009 00:10:24 +0000
(
00:10
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 10 Apr 2009 00:10:24 +0000
(
00:10
-0000)
keys that don't exist in the given dict.
svn path=/main/trunk/; revision=13310
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index a914f2f326698f3de5c529f5b17e5e59339846da..65ee6e5c8e33cd538e515351436dd8d3d98e7029 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-2130,7
+2130,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