summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-14 22:10:28 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-14 22:10:28 -0700
commit4580734caa18250bd0c2bc8241dc36f308cdef2b (patch)
tree09cbc1db78bf65618d29f80c8c278e61905219dc /pym/_emerge/actions.py
parent1d170ec97f6c9db495ba9cbe9256623e1b946d86 (diff)
downloadportage-4580734caa18250bd0c2bc8241dc36f308cdef2b.tar.gz
portage-4580734caa18250bd0c2bc8241dc36f308cdef2b.tar.bz2
portage-4580734caa18250bd0c2bc8241dc36f308cdef2b.zip
emerge --metadata: fix breakage
The hunk that got removed from action_metadata in commit d4ea29bf6a3ce35d49e0f54f9173e3a6e42da2d6 is actually needed when FEATURES=metadata-transfer is enabled.
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index c449b5874..71a090233 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -1660,6 +1660,10 @@ def action_metadata(settings, portdb, myopts, porttrees=None):
porttrees_data = []
for path in porttrees:
src_db = portdb._pregen_auxdb.get(path)
+ if src_db is None:
+ # portdbapi does not populate _pregen_auxdb
+ # when FEATURES=metadata-transfer is enabled
+ src_db = portdb._create_pregen_cache(path)
if src_db is not None:
porttrees_data.append(TreeData(portdb.auxdb[path],