Lines 6-11
import sys
Link Here
|
6 |
import portage |
6 |
import portage |
7 |
from portage import os |
7 |
from portage import os |
8 |
from portage import digraph |
8 |
from portage import digraph |
|
|
9 |
from portage.dep import Atom |
9 |
from portage._sets.base import InternalPackageSet |
10 |
from portage._sets.base import InternalPackageSet |
10 |
|
11 |
|
11 |
from _emerge.BlockerCache import BlockerCache |
12 |
from _emerge.BlockerCache import BlockerCache |
Lines 117-123
class BlockerDB(object):
Link Here
|
117 |
def discardBlocker(self, pkg): |
118 |
def discardBlocker(self, pkg): |
118 |
"""Discard a package from the list of potential blockers. |
119 |
"""Discard a package from the list of potential blockers. |
119 |
This will match any package(s) with identical cpv or cp:slot.""" |
120 |
This will match any package(s) with identical cpv or cp:slot.""" |
120 |
for cpv_match in self._fake_vartree.dbapi.match_pkgs("=%s" % (pkg.cpv,)): |
121 |
for cpv_match in self._fake_vartree.dbapi.match_pkgs(Atom("=%s" % (pkg.cpv,))): |
121 |
if cpv_match.cp == pkg.cp: |
122 |
if cpv_match.cp == pkg.cp: |
122 |
self._fake_vartree.cpv_discard(cpv_match) |
123 |
self._fake_vartree.cpv_discard(cpv_match) |
123 |
for slot_match in self._fake_vartree.dbapi.match_pkgs(pkg.slot_atom): |
124 |
for slot_match in self._fake_vartree.dbapi.match_pkgs(pkg.slot_atom): |
124 |
- |
|
|