@log_calls<EOL><INDENT>def sync_check(self, md5cache, remoteKey):<DEDENT>
if not remoteKey:<EOL><INDENT>return False<EOL><DEDENT>if not os.path.exists(md5cache.filename):<EOL><INDENT>return False<EOL><DEDENT>localmd5 = md5cache.get_md5()<EOL>return ('<STR_LIT>' in remoteKey and remoteKey['<STR_LIT>'] == '<STR_LIT>' % localmd5) or('<STR_LIT>' in remoteKey and remoteKey['<STR_LIT>'] == localmd5) or('<STR_LIT>' in remoteKey['<STR_LIT>'] and remoteKey['<STR_LIT>']['<STR_LIT>'] == localmd5)<EOL>
Check MD5 for a local file and a remote file.
           Return True if they have the same md5 hash, otherwise False.