summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-08-28 15:31:29 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-08-29 15:16:28 +0100
commitecefb2d1936221ccf21cbad6db2fe73cd229f4f5 (patch)
treebdf91e898213f0daaa7d4c06598a920f096b5d79 /scripts
parentf2415383628cb22c5646d96b0e7bbfd6d0629072 (diff)
downloadmorph-ecefb2d1936221ccf21cbad6db2fe73cd229f4f5.tar.gz
Strata contain "chunks", not "sources"
Rename "sources" field of stratum morphologies to "chunks".
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clean-git-cache4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/clean-git-cache b/scripts/clean-git-cache
index bcc106aa..c52e40d8 100755
--- a/scripts/clean-git-cache
+++ b/scripts/clean-git-cache
@@ -191,10 +191,10 @@ class CleanGitCache(cliapp.Application):
tree = json.loads(self._cat_file(morphs_dir, morphs_ref, filename))
- if tree['kind'] != 'stratum' or 'sources' not in tree:
+ if tree['kind'] != 'stratum' or 'chunks' not in tree:
continue
- for chunk in tree['sources']:
+ for chunk in tree['chunks']:
repo = chunk['repo']
directory = quote_url(self.resolver.pull_url(repo))
gits_in_use_list.append(directory)