+ if raw_line[0].strip() == "include":
+ path = cmd
+ path = os.path.normpath(self.path + "/" + path)
+ path = path + "/recipe"
+ if path in self.circle:
+ self.log.error("Detect import loop!")
+ raise RecipeExeption
+ self.circle.append(path)
+ recipe_to_include = recipe(path, circle=self.circle)
+ else:
+ machine = raw_line[0]
+ extra = raw_line[1]
+ if raw_line[0].strip() == "include":
+ self._recipe.extend(recipe_to_include.recipe)
+ else:
+ self._recipe.append((machine.strip(), extra.strip(), cmd.strip()))