From: Zac Medico Date: Mon, 9 Jul 2007 19:28:45 +0000 (-0000) Subject: Remove the repo_name warning in the portdbapi constructor since we don't want to... X-Git-Tag: v2.2_pre1~1050 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0faee684dacb942137c2635a7cc6254030d9ce48;p=portage.git 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 --- 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")