portdbapi.__init__: always warn for unused param
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Nov 2010 20:34:13 +0000 (12:34 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Nov 2010 20:34:13 +0000 (12:34 -0800)
pym/portage/dbapi/porttree.py

index 979a4883918423a53727062286dd73f0a8877808..b3a219517cafac10816c1c92272b179437d705a5 100644 (file)
@@ -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