src/build/fuchsia/device_target.py
def _SDKHashMatches(self):
    """Checks if /data/.hash on the device matches SDK_ROOT/.hash.

    Returns True if the files are identical, or False otherwise.
    """
    with tempfile.NamedTemporaryFile() as tmp:
      try:
        self.GetFile(TARGET_HASH_FILE_PATH, tmp.name)
      except subprocess.CalledProcessError:
        # If the file is unretrievable for whatever reason, assume mismatch.
        return False

      return filecmp.cmp(tmp.name, os.path.join(SDK_ROOT, '.hash'), False)
Checks if /data/.hash on the device matches SDK_ROOT/.hash.

    Returns True if the files are identical, or False otherwise.
    
Checks if /data/.hash on the device matches SDK_ROOT/.hash.
Returns True if the files are identical, or False otherwise.
Checks if / data / . hash on the device matches SDK_ROOT / . hash . Returns True if the files are identical or False otherwise .
def _SDKHashMatches(self):
    with tempfile.NamedTemporaryFile() as tmp:
      try:
        self.GetFile(TARGET_HASH_FILE_PATH, tmp.name)
      except subprocess.CalledProcessError:
        return False
      return filecmp.cmp(tmp.name, os.path.join(SDK_ROOT, '.hash'), False)
def _SDKHashMatches ( self ) : with tempfile . NamedTemporaryFile ( ) as tmp : try : self . GetFile ( TARGET_HASH_FILE_PATH , tmp . name ) except subprocess . CalledProcessError : return False return filecmp . cmp ( tmp . name , os . path . join ( SDK_ROOT , '.hash' ) , False )
Checks if /data/.hash on the device matches SDK_ROOT/.hash.
Checks if / data / . hash on the device matches SDK_ROOT / . hash .
"""Checks if /data/.hash on the device matches SDK_ROOT/.hash.

    Returns True if the files are identical, or False otherwise.
    """ # If the file is unretrievable for whatever reason, assume mismatch.
self