summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-11 20:28:28 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-11 20:28:28 +0000
commitae1c3a658eaf8e71c731c054cbba57d6c26dea85 (patch)
treecd45da8bcf5691ef87a10ab0083276ab7001fa65
parentba797c11c5a510758b6bf6fab03d511ac32d9041 (diff)
downloadportage-ae1c3a658eaf8e71c731c054cbba57d6c26dea85.tar.gz
portage-ae1c3a658eaf8e71c731c054cbba57d6c26dea85.tar.bz2
portage-ae1c3a658eaf8e71c731c054cbba57d6c26dea85.zip
Don't warn about missing repo_name for $PORTDIR when it happens to be empty.
svn path=/main/trunk/; revision=12206
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 788b30e25..81f0f3667 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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 = []