summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-11-26 12:34:13 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-26 12:34:13 -0800
commit637206243c364662cd2dc511d7c833e70570a55a (patch)
treeb0bf8f9b599a79b9fdb325662b4ed477f10b1bff
parent08aaf2185ee403b18cd9f9009201475ea3f26ce6 (diff)
downloadportage-637206243c364662cd2dc511d7c833e70570a55a.tar.gz
portage-637206243c364662cd2dc511d7c833e70570a55a.tar.bz2
portage-637206243c364662cd2dc511d7c833e70570a55a.zip
portdbapi.__init__: always warn for unused param
-rw-r--r--pym/portage/dbapi/porttree.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 979a48839..b3a219517 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -84,12 +84,11 @@ class portdbapi(dbapi):
from portage import settings
self.settings = config(clone=settings)
- if _unused_param is not None and \
- _unused_param != self.settings['PORTDIR']:
+ if _unused_param is not None:
warnings.warn("The first parameter of the " + \
"portage.dbapi.porttree.portdbapi" + \
- " constructor is now unused. " + \
- "mysettings['PORTDIR'] will be used instead.",
+ " constructor is unused since portage-2.1.8. " + \
+ "mysettings['PORTDIR'] is used instead.",
DeprecationWarning, stacklevel=2)
self.repositories = self.settings.repositories