def compare_local_file(self, file_key):
<EOL>file_path = os.path.join(self.build_dir, file_key)<EOL>if self.force_publish:<EOL><INDENT>self.update_list.append((file_key, file_path))<EOL>return<EOL><DEDENT>if file_key in self.s3_obj_dict:<EOL><INDENT>s3_md5 = self.s3_obj_dict[file_key].get('<STR_LIT>').strip('<STR_LIT:">').strip("<STR_LIT:'>")<EOL>if "<STR_LIT:->" in s3_md5:<EOL><INDENT>local_md5 = self.get_multipart_md5(file_path)<EOL><DEDENT>else:<EOL><INDENT>local_md5 = self.get_md5(file_path)<EOL><DEDENT>if s3_md5 == local_md5:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>".format(file_key))<EOL>self.update_list.append((file_key, file_path))<EOL><DEDENT>del self.s3_obj_dict[file_key]<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>".format(file_key))<EOL>self.update_list.append((file_key, file_path))<EOL><DEDENT>
Compares a local version of a file with what's already published.

If an update is needed, the file's key is added self.update_list.