@staticmethod
    def _getTargetRules(rules, name):
        # return the rules for troves with this name; if it's a component of
        # a package we alrady built reuse the rule which we used for that
        # package
        targetRules = rules.get(name, None)
        if targetRules is None:
            raise builderrors.RecipeFileError, \
                name % "Cannot find redirection for trove %s"

        return targetRules
dataset/ETHPy150Open sassoftware/conary/conary/build/redirectrecipe.py/_RedirectRecipe._getTargetRules/swapped operands of `%`