From 2e8d04732813c535a6e5b0378199643793b3176e Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Tue, 1 May 2018 10:27:16 +0200 Subject: [PATCH] Recipe: split only at the first occurrence of : We would break break link like https:// when we split at anny occurrence of : Signed-off-by: Jonatan Schlag --- recipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipe.py b/recipe.py index a520e7a..b7967f7 100644 --- a/recipe.py +++ b/recipe.py @@ -68,7 +68,7 @@ class recipe(): self._recipe = [] i = 1 for line in self.raw_recipe: - raw_line = line.split(":") + raw_line = line.split(":", 1) if len(raw_line) < 2: self.log.error("Error parsing the recipe in line {}".format(i)) raise RecipeExeption -- 2.39.2