From f9793383c6e0d82bd4274bcca1717eacab1cf877 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 27 Aug 2019 23:21:48 +0200 Subject: [PATCH] [DEV] manifest add deliver option --- island/manifest.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/island/manifest.py b/island/manifest.py index 0b0cd34..200a8f5 100644 --- a/island/manifest.py +++ b/island/manifest.py @@ -54,6 +54,8 @@ class Manifest(): self.remotes = [] self.includes = [] self.links = [] + self.deliver_master = "master" + self.deliver_develop = "develop" # load the manifest self._load() # check error in manifest (double path ...) @@ -225,6 +227,21 @@ class Manifest(): continue if child.tag == "option": # not managed ==> future use + type_option = "" + value_option = "" + for attr in child.attrib: + if attr == "type": + type_option = child.attrib[attr] + elif attr == "value": + value_option = child.attrib[attr] + else: + debug.error("(l:" + str(child.sourceline) + ") Parsing the manifest: Unknow '" + child.tag + "' attibute : '" + attr + "', availlable:[type,value]") + if type_option == "deliver_master": + self.deliver_master = value_option + elif type_option == "deliver_develop": + self.deliver_develop = value_option + else: + debug.error("(l:" + str(child.sourceline) + ") Parsing the manifest: Unknow 'type' value availlable: [deliver_master,deliver_develop]") continue if child.tag == "link": # not managed ==> future use