diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-01-12 14:30:38 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-01-16 11:34:39 +0000 |
commit | 0f14928fb700d14ed1ebb8675c26b263bf2bc58c (patch) | |
tree | 87ffb529e00cc58565235425a2aae7c3880f2a74 /morphlib/morphology.py | |
parent | 41ee528492db9bd41604311b100da5a871098b3a (diff) | |
download | morph-0f14928fb700d14ed1ebb8675c26b263bf2bc58c.tar.gz |
Introduce the "show-dependencies" command and BuildDependencyGraph.
The "show-dependencies" command takes a series of build tuples and dumps
the resulting dependency graph (including strata and chunks at the
moment) to the standard output. It also dumps the resulting build order
which is a list of groups. These groups indicate which chunks and strata
can be built in parallel and are not dependent on each other.
Diffstat (limited to 'morphlib/morphology.py')
-rw-r--r-- | morphlib/morphology.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/morphlib/morphology.py b/morphlib/morphology.py index 0dcb03f7..9059e9b9 100644 --- a/morphlib/morphology.py +++ b/morphlib/morphology.py @@ -22,7 +22,10 @@ class Morphology(object): '''Represent a morphology: description of how to build binaries.''' - def __init__(self, fp, baseurl=None): + def __init__(self, repo, ref, fp, baseurl=None): + self.repo = repo + self.ref = ref + self._fp = fp self._baseurl = baseurl or '' self._load() @@ -58,7 +61,7 @@ class Morphology(object): @property def build_depends(self): - return self._dict.get('build-depends', []) + return self._dict.get('build-depends', None) @property def build_system(self): |