summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-01-31 16:29:26 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-01-31 16:29:26 +0000
commitab965be42d10f2608dc883ee0cc34a1cd0fe5058 (patch)
treea073eb82d46af443cb19ef339d225d772ac5c7ef
parent52d3c3f5fcd07912c63bb14771de1c882236899a (diff)
parentd887e2341ebd080602107a6904fe024f89abbb18 (diff)
downloadmorph-ab965be42d10f2608dc883ee0cc34a1cd0fe5058.tar.gz
Merge remote-tracking branch 'origin/master'
-rwxr-xr-xmorph14
1 files changed, 4 insertions, 10 deletions
diff --git a/morph b/morph
index 3e78fb18..ce2838ac 100755
--- a/morph
+++ b/morph
@@ -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()