summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-19 18:57:58 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-19 18:57:58 +0000
commit00960b8b9afb0d5132013d5a56fe5c4bcb525fb5 (patch)
treef95e4d64e3c28efbd14e5bb63cc09e8344e5d9ed
parent776a4d9b3a4d8eef1113082410857365007fa22b (diff)
downloadportage-00960b8b9afb0d5132013d5a56fe5c4bcb525fb5.tar.gz
portage-00960b8b9afb0d5132013d5a56fe5c4bcb525fb5.tar.bz2
portage-00960b8b9afb0d5132013d5a56fe5c4bcb525fb5.zip
Tweak _eclasses_ logic inside action_metadata().
svn path=/main/trunk/; revision=13372
-rw-r--r--pym/_emerge/__init__.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 92f2dbae0..6c85112e0 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -13557,12 +13557,12 @@ def action_metadata(settings, portdb, myopts, porttrees=None):
else:
inherited = inherited.split()
- if inherited:
- if tree_data.src_db.complete_eclass_entries and \
- eclasses is None:
- noise.corruption(cpv, "missing _eclasses_ field")
- continue
+ if tree_data.src_db.complete_eclass_entries and \
+ eclasses is None:
+ noise.corruption(cpv, "missing _eclasses_ field")
+ continue
+ if inherited:
# Even if _eclasses_ already exists, replace it with data from
# eclass_cache, in order to insert local eclass paths.
try:
@@ -13576,6 +13576,8 @@ def action_metadata(settings, portdb, myopts, porttrees=None):
noise.eclass_stale(cpv)
continue
src['_eclasses_'] = eclasses
+ else:
+ src['_eclasses_'] = {}
if not eapi_supported:
src = {