summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/depgraph.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index acca40eb0..27c2b4750 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2186,6 +2186,8 @@ class depgraph(object):
built, installed, db_keys, myrepo=repo, _pkg_use_enabled=self._pkg_use_enabled)
if metadata is not None:
+ if not repo:
+ repo = metadata.get('repository')
pkg = self._pkg(cpv, pkg_type, root_config,
installed=installed, myrepo=repo)
# pkg.metadata contains calculated USE for ebuilds,