Bug 1391476 - Dedent block; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Tue, 22 Aug 2017 12:40:44 -0700
changeset 651403 2424c0d50d0e28b95d545a0606b99e2de09baf0d
parent 651402 535e7c45e6a58dff14660d33099184505213e767
child 651404 8775a6b4512196dfb0fdd116eb51e74dd9f96018
push id75721
push usergszorc@mozilla.com
push dateWed, 23 Aug 2017 17:48:59 +0000
reviewersdustin
bugs1391476
milestone57.0a1
Bug 1391476 - Dedent block; r?dustin MozReview-Commit-ID: 1l8gWfBNBMs
taskcluster/docker/recipes/run-task
--- 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')