From: Zac Medico Date: Fri, 12 Dec 2008 21:41:57 +0000 (-0000) Subject: Don't warn about missing repo_name for $PORTDIR when it happens to be empty. X-Git-Tag: v2.1.6.1~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=199d813d90bea172e8f5bf6f1a84c5a8987135d1;p=portage.git Don't warn about missing repo_name for $PORTDIR when it happens to be empty. (trunk r12206) svn path=/main/branches/2.1.6/; revision=12237 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 7e4e05d69..b7cafa8a6 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -13717,6 +13717,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 = []