summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2008-06-20 05:12:46 +0000
committerMarius Mauch <genone@gentoo.org>2008-06-20 05:12:46 +0000
commitc5e0f3970e49334a0c89e4c18a662235d3a8858a (patch)
treeeba0965eb911a0259e4d8f61866e0b9fdac1a7a6
parent806c108876c999e774fa56ac95671bc51be83452 (diff)
downloadportage-c5e0f3970e49334a0c89e4c18a662235d3a8858a.tar.gz
portage-c5e0f3970e49334a0c89e4c18a662235d3a8858a.tar.bz2
portage-c5e0f3970e49334a0c89e4c18a662235d3a8858a.zip
reenable warning about missing repository namesv2.2_rc1
svn path=/main/trunk/; revision=10735
-rw-r--r--pym/_emerge/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 884d57bcf..999bd9e33 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -9072,6 +9072,20 @@ def emerge_main():
if "--quiet" not in myopts:
portage.deprecated_profile_check()
+ for root in trees:
+ if "porttree" in trees[root]:
+ db = trees[root]["porttree"].dbapi
+ paths = (db.mysettings["PORTDIR"]+" "+db.mysettings["PORTDIR_OVERLAY"]).split()
+ repos = db.getRepositories()
+ for r in repos:
+ p = db.getRepositoryPath(r)
+ try:
+ paths.remove(p)
+ except ValueError:
+ pass
+ for p in paths:
+ writemsg("WARNING: repository at %s is missing a repo_name entry\n" % p)
+
eclasses_overridden = {}
for mytrees in trees.itervalues():