diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-22 19:29:53 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-22 19:29:53 -0700 |
commit | c83131e33c4c0138033c439da91fd3e257a75c1a (patch) | |
tree | 3b158c54c6535b99132cab47148e662c1e558840 | |
parent | 5c0f7b06a0b7f6461b3d38ea5a7c261d767fd82b (diff) | |
download | portage-c83131e33c4c0138033c439da91fd3e257a75c1a.tar.gz portage-c83131e33c4c0138033c439da91fd3e257a75c1a.tar.bz2 portage-c83131e33c4c0138033c439da91fd3e257a75c1a.zip |
portdbapi.xmatch: deprecate list-visible
-rwxr-xr-x | bin/repoman | 2 | ||||
-rw-r--r-- | pym/portage/dbapi/porttree.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index 7532a997f..85c9c1785 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1927,7 +1927,7 @@ for x in scanlist: if not baddepsyntax: ismasked = not ebuild_archs or \ - pkg.cpv not in portdb.xmatch("list-visible", pkg.cp) + pkg.cpv not in portdb.xmatch("match-visible", pkg.cp) if ismasked: if not have_pmasked: have_pmasked = bool(dep_settings._getMaskAtom( diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 4f5dc78d4..eb7e36a96 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -811,6 +811,11 @@ class portdbapi(dbapi): "caching match function; very trick stuff" if level == "list-visible": level = "match-visible" + warnings.warn("The 'list-visible' mode of " + "portage.dbapi.porttree.portdbapi.xmatch " + "has been renamed to match-visible", + DeprecationWarning, stacklevel=2) + #if no updates are being made to the tree, we can consult our xcache... if self.frozen: try: |