From 0faee684dacb942137c2635a7cc6254030d9ce48 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Jul 2007 19:28:45 +0000 Subject: Remove the repo_name warning in the portdbapi constructor since we don't want to see a warning every time the portage module is imported. svn path=/main/trunk/; revision=7212 --- pym/portage/dbapi/porttree.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 379174573..34eff92a7 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -91,8 +91,9 @@ class portdbapi(dbapi): repo_name = open(repo_name_path, 'r').readline().strip() self.treemap[repo_name] = path except (OSError,IOError): - writemsg_stdout("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") + # warn about missing repo_name at some other time, since we + # don't want to see a warning every time the portage module is + # imported. pass self.auxdbmodule = self.mysettings.load_best_module("portdbapi.auxdbmodule") -- cgit v1.2.3-1-g7c22