diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-09-23 17:20:47 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-09-23 17:45:40 -0700 |
commit | d9151dfb8144563119f016b439de2b0f53d8858e (patch) | |
tree | b258baf92d749cdabb5bd2d0ec23d023069abaa1 | |
parent | repoman: Update for a repoman-2.3.11 release (diff) | |
download | portage-d9151dfb8144563119f016b439de2b0f53d8858e.tar.gz portage-d9151dfb8144563119f016b439de2b0f53d8858e.tar.bz2 portage-d9151dfb8144563119f016b439de2b0f53d8858e.zip |
portdbapi.xmatch: remove deprecated *match-list
The bestmatch-list and match-list level arguments have been deprecated
since v2.2.0, commit 0d375f1105ad67c8b7e3b16b57cdbb367f99cd69.
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | lib/portage/dbapi/porttree.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/portage/dbapi/porttree.py b/lib/portage/dbapi/porttree.py index aa8b50a57..56955ec34 100644 --- a/lib/portage/dbapi/porttree.py +++ b/lib/portage/dbapi/porttree.py @@ -1165,18 +1165,6 @@ class portdbapi(dbapi): else: myval = "" - elif level == "bestmatch-list": - #dep match -- find best match but restrict search to sublist - warnings.warn("The 'bestmatch-list' mode of " - "portage.dbapi.porttree.portdbapi.xmatch is deprecated", - DeprecationWarning, stacklevel=2) - myval = best(list(self._iter_match(mydep, mylist))) - elif level == "match-list": - #dep match -- find all matches but restrict search to sublist (used in 2nd half of visible()) - warnings.warn("The 'match-list' mode of " - "portage.dbapi.porttree.portdbapi.xmatch is deprecated", - DeprecationWarning, stacklevel=2) - myval = list(self._iter_match(mydep, mylist)) else: raise AssertionError( "Invalid level argument: '%s'" % level) |