Don't warn about missing repo_name for $PORTDIR when it happens to be empty.
authorZac Medico <zmedico@gentoo.org>
Thu, 11 Dec 2008 20:28:28 +0000 (20:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 11 Dec 2008 20:28:28 +0000 (20:28 -0000)
svn path=/main/trunk/; revision=12206

pym/_emerge/__init__.py

index 788b30e250412deed037647ccb7e9bf5f93bcff3..81f0f3667024feabaaea60a0c429a07c19a7e5f9 100644 (file)
@@ -14183,6 +14183,12 @@ def repo_name_check(trees):
                        repos = portdb.getRepositories()
                        for r in repos:
                                missing_repo_names.discard(portdb.getRepositoryPath(r))
+                       if portdb.porttree_root in missing_repo_names and \
+                               not os.path.exists(os.path.join(
+                               portdb.porttree_root, "profiles")):
+                               # This is normal if $PORTDIR happens to be empty,
+                               # so don't warn about it.
+                               missing_repo_names.remove(portdb.porttree_root)
 
        if missing_repo_names:
                msg = []