diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-10-03 14:42:54 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-10-03 14:42:54 +0100 |
commit | c45e1325b9930c0008f9cfdbae2c527b3d62de6e (patch) | |
tree | 49c6617d7a62de939c42d4e8bb8276f171868ce0 /morphlib/morphology.py | |
parent | 5003590ca0da16d58c07c48048310f1f6d6f0d32 (diff) | |
download | morph-c45e1325b9930c0008f9cfdbae2c527b3d62de6e.tar.gz |
Add preliminary support for system morphologies.
No validation at this time. The current approach to implementing
validation is too much work.
Diffstat (limited to 'morphlib/morphology.py')
-rw-r--r-- | morphlib/morphology.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/morphlib/morphology.py b/morphlib/morphology.py index 86658fb8..903df472 100644 --- a/morphlib/morphology.py +++ b/morphlib/morphology.py @@ -51,6 +51,8 @@ class Morphology(object): self._validate_stratum() for source in self.sources.itervalues(): source['repo'] = self._join_with_baseurl(source['repo']) + elif self.kind == 'system': + pass else: raise self._error('kind must be chunk or stratum, not %s' % self.kind) @@ -142,6 +144,10 @@ class Morphology(object): def install_commands(self): return self._dict.get('install-commands', []) + @property + def strata(self): + return self._dict.get('strata', []) + def _join_with_baseurl(self, url): is_relative = (':' not in url or '/' not in url or |