Bug 1216901 - Always update backend output list files mtime from the base backend class. r=mshal

Instead of having individual backends do it on their own.
This commit is contained in:
Mike Hommey 2015-10-28 11:37:38 +09:00
parent 6620849e52
commit ad084dfa2a
2 changed files with 2 additions and 5 deletions

View File

@ -153,7 +153,8 @@ class BuildBackend(LoggingMixin):
not os.path.exists(self._backend_output_list_file): not os.path.exists(self._backend_output_list_file):
with open(self._backend_output_list_file, 'w') as fh: with open(self._backend_output_list_file, 'w') as fh:
fh.write('\n'.join(sorted(self._backend_output_files))) fh.write('\n'.join(sorted(self._backend_output_files)))
elif self._updated_count: else:
# Always update its mtime.
with open(self._backend_output_list_file, 'a'): with open(self._backend_output_list_file, 'a'):
os.utime(self._backend_output_list_file, None) os.utime(self._backend_output_list_file, None)

View File

@ -850,10 +850,6 @@ class RecursiveMakeBackend(CommonBackend):
for path in inputs: for path in inputs:
backend_deps.write('%s:\n' % path) backend_deps.write('%s:\n' % path)
with open(self._backend_output_list_file, 'a'):
pass
os.utime(self._backend_output_list_file, None)
# Make the master test manifest files. # Make the master test manifest files.
for flavor, t in self._test_manifests.items(): for flavor, t in self._test_manifests.items():
install_prefix, manifests = t install_prefix, manifests = t