Remove the repo_name warning in the portdbapi constructor since we don't want to...
authorZac Medico <zmedico@gentoo.org>
Mon, 9 Jul 2007 19:28:45 +0000 (19:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 Jul 2007 19:28:45 +0000 (19:28 -0000)
svn path=/main/trunk/; revision=7212

pym/portage/dbapi/porttree.py

index 379174573c7dd2facc201989eea88bde70af298a..34eff92a7e583fc42ff4150426d2d184576403a5 100644 (file)
@@ -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")