summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-06-30 10:04:42 +0000
committerMarius Mauch <genone@gentoo.org>2007-06-30 10:04:42 +0000
commit656820f4b84e8dfebe3d5da133201c39a521c8fb (patch)
treee9ff63073384673edaa42956ee20bd57ca8c11e6
parentb13ef4d400786b3a88f1d8e9c3124c2e57585779 (diff)
downloadportage-656820f4b84e8dfebe3d5da133201c39a521c8fb.tar.gz
portage-656820f4b84e8dfebe3d5da133201c39a521c8fb.tar.bz2
portage-656820f4b84e8dfebe3d5da133201c39a521c8fb.zip
print a notice when a repository/overlay does not have a name
svn path=/main/trunk/; revision=7096
-rw-r--r--pym/portage/dbapi/porttree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 71ff993ba..128e5b166 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -91,6 +91,8 @@ class portdbapi(dbapi):
repo_name = open(repo_name_path, 'r').readline().strip()
self.treemap[repo_name] = path
except (OSError,IOError):
+ writemsg("Note: The repository at %s does not have a profiles/repo_name entry.\n" % path \
+ + " This can reduce the functionality of the repository in some cases.\n")
pass
self.auxdbmodule = self.mysettings.load_best_module("portdbapi.auxdbmodule")