summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-25 16:48:46 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-25 16:48:46 +0100
commit3be0fb09fc34bfbf473165018beeb3321cfd7b2d (patch)
treec5cbd90377d34f2564d6cb2795cf070d2faa2949 /morph
parent1ac1877a3fb03daa282526273cbcc845faf8e6c5 (diff)
downloadmorph-3be0fb09fc34bfbf473165018beeb3321cfd7b2d.tar.gz
Move repo and submodule caching into a helper method
This will be useful for later fixing of cmd_build.
Diffstat (limited to 'morph')
-rwxr-xr-xmorph6
1 files changed, 6 insertions, 0 deletions
diff --git a/morph b/morph
index 777dd75f..003147e3 100755
--- a/morph
+++ b/morph
@@ -405,6 +405,12 @@ class Morph(cliapp.Application):
update=True, visit=visit)
done = set()
+ for url, ref in subs_to_process:
+ self._cache_repo_and_submodules(cache, url, ref, done)
+
+ def _cache_repo_and_submodules(self, cache, url, ref, done):
+ subs_to_process = set()
+ subs_to_process.add((url, ref))
while subs_to_process:
url, ref = subs_to_process.pop()
done.add((url, ref))