summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-09 19:28:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-09 19:28:45 +0000
commit0faee684dacb942137c2635a7cc6254030d9ce48 (patch)
tree9d0df2719e5dc3fe3aef47dbd597fe4c32347fd4 /pym
parent4d63475660d4ec96ebdee299c132fb0422d8fd0e (diff)
downloadportage-0faee684dacb942137c2635a7cc6254030d9ce48.tar.gz
portage-0faee684dacb942137c2635a7cc6254030d9ce48.tar.bz2
portage-0faee684dacb942137c2635a7cc6254030d9ce48.zip
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
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py5
1 files 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")