commit: 2afd8f2c533e6e000b5619282a4cd4c71405eb62 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sun Jul 12 04:57:19 2015 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Jul 14 18:06:40 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2afd8f2c
BlockerDB.discardBlocker: convert str to Atom for DbapiProvidesIndex (bug 554578) Since commit 11467fc640995e3dc8897c82bbc7130d5bf27d05, only Atom instances are allowed to be passed into match_pkgs calls. Fixes: 11467fc64099 ("depgraph: soname dependency resolution (bug 282639)") X-Gentoo-Bug: 554578 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=554578 Acked-by: Brian Dolbec <dolsen <AT> gentoo.org> pym/_emerge/BlockerDB.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/BlockerDB.py b/pym/_emerge/BlockerDB.py index 8bb8f5f..44a70a0 100644 --- a/pym/_emerge/BlockerDB.py +++ b/pym/_emerge/BlockerDB.py @@ -1,4 +1,4 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import sys @@ -7,6 +7,7 @@ import portage from portage import os from portage import digraph from portage._sets.base import InternalPackageSet +from portage.dep import Atom from _emerge.BlockerCache import BlockerCache from _emerge.Package import Package @@ -117,7 +118,7 @@ class BlockerDB(object): def discardBlocker(self, pkg): """Discard a package from the list of potential blockers. This will match any package(s) with identical cpv or cp:slot.""" - for cpv_match in self._fake_vartree.dbapi.match_pkgs("=%s" % (pkg.cpv,)): + for cpv_match in self._fake_vartree.dbapi.match_pkgs(Atom("=%s" % (pkg.cpv,))): if cpv_match.cp == pkg.cp: self._fake_vartree.cpv_discard(cpv_match) for slot_match in self._fake_vartree.dbapi.match_pkgs(pkg.slot_atom):