Skip pre-caching /deb- repositories in nodepool images
Building a nodepool image is incredibly slow due to the git repo
precaching and it doesn't help that everything is cached twice.
@@ -50,7 +50,12 @@ def main():
for project in projects:
# Skip repos that are inactive
dirname = os.path.dirname(project)
- if not ('attic' in dirname or dirname == 'stackforge'):
+ if ('attic' in dirname or dirname == 'stackforge'):
+ continue
+ # Skip the /deb- git repo copies
+ if ('/deb-' in project):
+ continue
+
args = dict(
name=os.path.basename(project),
location=os.path.join('/opt/git', project),
