summaryrefslogtreecommitdiff
path: root/find-missing-lorries
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-06-20 15:40:46 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-06-20 15:40:46 +0100
commit781c40f2fd51499e55476d0a3d39623ec3118d82 (patch)
tree72a3f7d4ed497c53668ad74713cb27987fe8a5e7 /find-missing-lorries
parent3f3e8e93ba7b8d1fb2a508c38b76693593bb1aeb (diff)
downloadlorries-781c40f2fd51499e55476d0a3d39623ec3118d82.tar.gz
Fix script to find repos without lorries, not vice versa
Diffstat (limited to 'find-missing-lorries')
-rwxr-xr-xfind-missing-lorries10
1 files changed, 6 insertions, 4 deletions
diff --git a/find-missing-lorries b/find-missing-lorries
index 9e1b81f..a4036bc 100755
--- a/find-missing-lorries
+++ b/find-missing-lorries
@@ -23,7 +23,9 @@ for filename in glob.glob('open-source-lorries/*.lorry'):
obj = json.load(f)
for repo_basename in obj:
repo_name = 'delta/%s' % repo_basename
- if repo_name not in repo_list:
- print 'MISSING: %s' % repo_name
- else:
- print 'OK: %s' % repo_name
+ lorries.append(repo_name)
+
+
+for repo in repo_list:
+ if repo.startswith('delta/') and repo not in lorries:
+ print 'MISSING', repo