def check_recipe(self, recipe):
    (recipe_base_folder, _, _) = recipe.reldir.partition('/')
    if (recipe.name != recipe_base_folder):
        self.message(section='package/name')
def check_recipe(self, recipe):
    (recipe_base_folder, _, _) = recipe.reldir.partition('/')
    if (recipe.name != recipe_base_folder):
        self.message(section='package/name')