def _filterProvides(self, compName, provides):
        removeDeps = deps.DependencySet()

        for depClass, dep in provides.iterDeps():
            for compRe, depRe in self.exceptDeps:
                if not compRe.match(compName):
                    continue
                depName = '%s: %s' % (depClass.tagName, str(dep))
                if depRe.match(depName):
                    removeDeps.addDep(depClass, dep)
                    break

        return provides - removeDeps
dataset/ETHPy150Open sassoftware/conary/conary/build/capsulepolicy.py/RPMProvides._filterProvides/original