From 06cb7c913b04beeb2676ab8cb39d9c84e77c4a27 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 25 Apr 2012 16:53:33 +0100 Subject: Fix "morph build" when building stuff that uses submodules --- morph | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'morph') diff --git a/morph b/morph index 003147e3..b6902a75 100755 --- a/morph +++ b/morph @@ -214,11 +214,14 @@ class Morph(cliapp.Application): needed.append(artifact) logging.debug('cmd_build: cloning/updating cached repos') + done = set() for artifact in needed: artifact.source.repo = lrc.cache_repo( artifact.source.repo_name) if not self.settings['no-git-update']: - artifact.source.repo.update() + self._cache_repo_and_submodules( + lrc, artifact.source.repo.url, artifact.source.sha1, + done) if self.settings['bootstrap']: staging_root = '/' -- cgit v1.2.1