diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-31 16:29:26 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-01-31 16:29:26 +0000 |
commit | ab965be42d10f2608dc883ee0cc34a1cd0fe5058 (patch) | |
tree | a073eb82d46af443cb19ef339d225d772ac5c7ef | |
parent | 52d3c3f5fcd07912c63bb14771de1c882236899a (diff) | |
parent | d887e2341ebd080602107a6904fe024f89abbb18 (diff) | |
download | morph-ab965be42d10f2608dc883ee0cc34a1cd0fe5058.tar.gz |
Merge remote-tracking branch 'origin/master'
-rwxr-xr-x | morph | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -203,7 +203,6 @@ class Morph(cliapp.Application): self.output.write(' %s\n' % blob) def cmd_update_gits(self, args): - tempdir = morphlib.tempdir.Tempdir() morph_loader = MorphologyLoader(self.settings) source_manager = morphlib.sourcemanager.SourceManager(self) while len(args) >= 3: @@ -211,16 +210,11 @@ class Morph(cliapp.Application): repo, ref, filename = args[:3] args = args[3:] - # first step: clone the corresponding repo - treeish = source_manager.get_treeish(repo, ref) - morph = morph_loader.load(treeish, filename) - blob = morphlib.blobs.Blob.create_blob(morph) - - # second step: compute the cache ID, which will implicitly + # resolve the dependency graph, which will implicitly # clone all repositories needed to build the blob - builder = morphlib.builder.Builder(tempdir, self, morph_loader, - source_manager) - builder.get_cache_id(blob) + graph = BuildDependencyGraph(source_manager, morph_loader, + repo, ref, filename) + graph.resolve() def cmd_build_single(self, args): tempdir = morphlib.tempdir.Tempdir() |