summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-25 16:53:33 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-25 16:53:33 +0100
commit06cb7c913b04beeb2676ab8cb39d9c84e77c4a27 (patch)
tree2b5aa3d7c10a896cce7cf5d5dccae386ce240b1b /morph
parent3be0fb09fc34bfbf473165018beeb3321cfd7b2d (diff)
downloadmorph-06cb7c913b04beeb2676ab8cb39d9c84e77c4a27.tar.gz
Fix "morph build" when building stuff that uses submodules
Diffstat (limited to 'morph')
-rwxr-xr-xmorph5
1 files changed, 4 insertions, 1 deletions
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 = '/'