From f79548e634515e1b687739da625700f45a66a66f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Jul 2007 19:30:23 +0000 Subject: [PATCH] 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 --- pym/portage.py | 7 ++++--- 1 file 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") -- 2.26.2