split codename and version from version field in config-xml file as this eases automation

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-02-11 07:15:05 +01:00
parent c482db8c89
commit 1f24ca9ba2
6 changed files with 14 additions and 4 deletions

View File

@@ -53,6 +53,12 @@ class ConfigParser {
*/
public $distributionName = '';
/**
* Codename of the distribution this configuration is for
* @var string
*/
public $distributionCodename = '';
/**
* Version of the distribution this configuration is for
* @var string
@@ -99,6 +105,7 @@ class ConfigParser {
switch ((string)$key) {
case "name": $this->distributionName = (string)$value; break;
case "version": $this->distributionVersion = (string)$value; break;
case "codename": $this->distributionCodename = (string)$value; break;
case "deprecated": (string)$value == 'true' ? $this->deprecated = true : $this->deprecated = false; break;
}
}