summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-09 19:30:23 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-09 19:30:23 +0000
commitf79548e634515e1b687739da625700f45a66a66f (patch)
tree9cdbb534d8047ec07529fdb84000a794ca858a9c /pym/portage.py
parent89189fc36741b5e8f7a5fb7c91f7022959dd3cfb (diff)
downloadportage-f79548e634515e1b687739da625700f45a66a66f.tar.gz
portage-f79548e634515e1b687739da625700f45a66a66f.tar.bz2
portage-f79548e634515e1b687739da625700f45a66a66f.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. (trunk r7212)
svn path=/main/branches/2.1.2/; revision=7213
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 0fe864381..5c8731c7d 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1,4 +1,4 @@
-# portage.py -- core Portage functionality
+repo_name = open(repo_name_path# portage.py -- core Portage functionality
# Copyright 1998-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -5873,8 +5873,9 @@ 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")
+ # 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")