Bug 1391476 - Dedent block; r?dustin
MozReview-Commit-ID: 1l8gWfBNBMs
--- a/taskcluster/docker/recipes/run-task
+++ b/taskcluster/docker/recipes/run-task
@@ -304,25 +304,25 @@ def main(args):
os.chmod(requires_path, stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
# The cache has content and we have a requirements file. Validate
# requirements alignment.
elif os.path.exists(requires_path):
with open(requires_path, 'rb') as fh:
wanted_requirements = set(fh.read().splitlines())
- missing = wanted_requirements - our_requirements
- if missing:
- print('requirements for populated cache %s differ from '
- 'this task' % cache)
- print('cache requirements: %s' % ' '.join(sorted(
- wanted_requirements)))
- print('our requirements: %s' % ' '.join(sorted(
- our_requirements)))
- return 1
+ missing = wanted_requirements - our_requirements
+ if missing:
+ print('requirements for populated cache %s differ from '
+ 'this task' % cache)
+ print('cache requirements: %s' % ' '.join(sorted(
+ wanted_requirements)))
+ print('our requirements: %s' % ' '.join(sorted(
+ our_requirements)))
+ return 1
# The cache has content and no requirements file. This shouldn't
# happen because run-task should be the first thing that touches a
# cache.
else:
print('cache %s is not empty and is missing a .cacherequires '
'file; the cache names for this task are likely '
'mis-configured')