diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-25 16:48:46 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-25 16:48:46 +0100 |
commit | 3be0fb09fc34bfbf473165018beeb3321cfd7b2d (patch) | |
tree | c5cbd90377d34f2564d6cb2795cf070d2faa2949 | |
parent | 1ac1877a3fb03daa282526273cbcc845faf8e6c5 (diff) | |
download | morph-3be0fb09fc34bfbf473165018beeb3321cfd7b2d.tar.gz |
Move repo and submodule caching into a helper method
This will be useful for later fixing of cmd_build.
-rwxr-xr-x | morph | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)) |