From 3be0fb09fc34bfbf473165018beeb3321cfd7b2d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 25 Apr 2012 16:48:46 +0100 Subject: Move repo and submodule caching into a helper method This will be useful for later fixing of cmd_build. --- morph | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'morph') 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)) -- cgit v1.2.1