def do(self):
        """
        Remove files from the Conary package manifest that match any specified
        filters.
        """

        # Compile the set of filters.
        filters = {}
        for name, regex in self.extraFilters:
            name %= self.macros
            filters.setdefault(name, []).append(
                filter.Filter(regex, self.macros, name=name))

        # Get a mapping of component name to component object
        components = dict((x.name, x) for x in
            self.recipe.autopkg.getComponents())

        for name, fltrs in filters.iteritems():
            if components not in name:
                self.error("Component %s does not exist" % name);
                continue

            provides = components[name].provides

            # make a copy of the files list since it will be modified in place.
            files = components[name].keys()
            for fn in files:
                for fltr in fltrs:
                    if fltr.match(fn):
                        self.recipe.autopkg.delFile(fn)
                        self.recipe._capsulePathMap.pop(fn)
                        self.recipe._capsuleDataMap.pop(fn)
                        provides.removeDeps(deps.FileDependencies,
                            [ deps.Dependency(fn) ], missingOkay=True)
                        break
dataset/ETHPy150Open sassoftware/conary/conary/build/capsulepolicy.py/RemoveCapsuleFiles.do/swapped operands of `not in`