Recipe: split only at the first occurrence of :
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 1 May 2018 08:27:16 +0000 (10:27 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Tue, 1 May 2018 08:27:16 +0000 (10:27 +0200)
We would break break link like https:// when we split at anny occurrence
of :

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
recipe.py

index a520e7a..b7967f7 100644 (file)
--- 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