reenable warning about missing repository names v2.2_rc1
authorMarius Mauch <genone@gentoo.org>
Fri, 20 Jun 2008 05:12:46 +0000 (05:12 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 20 Jun 2008 05:12:46 +0000 (05:12 -0000)
svn path=/main/trunk/; revision=10735

pym/_emerge/__init__.py

index 884d57bcf49c9e633ab2f8200a9f3cb974079848..999bd9e3316e96afa2c9dcdfd0fe8866884f329e 100644 (file)
@@ -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():