]> git.ipfire.org Git - nitsi.git/commitdiff
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 a520e7ada10aac201401807d31343c68ebee3bff..b7967f735f013694544c490b83260328ee7a7f1a 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