print a notice when a repository/overlay does not have a name
authorMarius Mauch <genone@gentoo.org>
Sat, 30 Jun 2007 10:04:42 +0000 (10:04 -0000)
committerMarius Mauch <genone@gentoo.org>
Sat, 30 Jun 2007 10:04:42 +0000 (10:04 -0000)
svn path=/main/trunk/; revision=7096

pym/portage/dbapi/porttree.py

index 71ff993ba0945998d504c1b648561a72fcb9a520..128e5b166a71911bf4eca438c221df402a664b3b 100644 (file)
@@ -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")