Bug 1391476 - Dedent block; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Tue, 22 Aug 2017 12:40:44 -0700
changeset 650856 562ba4423c782a4794ad304caa7b6406f4a82cab
parent 650855 e584940b5db216b92feb76b32f02ce6a288acfca
child 650857 bb0dcc1a4a4e5d774384d1a93c3e6bf931c090be
push id75517
push usergszorc@mozilla.com
push dateTue, 22 Aug 2017 23:53:07 +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')