diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-01-26 15:42:51 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-01-26 16:56:41 +0000 |
commit | ba7f8f8421998f52233d5a2eab0214f40638ef7a (patch) | |
tree | e6590fbeac616f671f5b6c6ad2290efa3ee0698c /morphlib/builddependencygraph.py | |
parent | 95e080de7ae579db864b68c8fbd2aead7e429c78 (diff) | |
download | morph-ba7f8f8421998f52233d5a2eab0214f40638ef7a.tar.gz |
Make the BuildDependencyGraph's resolve() method return the root blob.
Diffstat (limited to 'morphlib/builddependencygraph.py')
-rw-r--r-- | morphlib/builddependencygraph.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/morphlib/builddependencygraph.py b/morphlib/builddependencygraph.py index c0f2b27c..7908c660 100644 --- a/morphlib/builddependencygraph.py +++ b/morphlib/builddependencygraph.py @@ -72,9 +72,10 @@ class BuildDependencyGraph(object): # pragma: no cover self.cached_blobs = {} self.blobs = set() - self.resolve_root() + root = self.resolve_root() self.resolve_strata() self.resolve_chunks() + return root def resolve_root(self): # prepare the repo, load the morphology and blob information @@ -92,6 +93,8 @@ class BuildDependencyGraph(object): # pragma: no cover stratum.add_parent(root) self.blobs.add(stratum) + return root + def resolve_strata(self): '''Generates a dependency graph of strata recursively. |