Lines Matching full:hash
37 self.hash = hashsum
48 return "Asset: url=%s hash=%s cache=%s" % (
49 self.url, self.hash, self.cache_file)
55 if self.hash is None:
57 if len(self.hash) == 64:
59 elif len(self.hash) == 128:
62 raise AssetError(self, "unknown hash type")
64 # Calculate the hash of the file:
72 return self.hash == hl.hexdigest()
181 os.setxattr(str(tmp_cache_file), "user.qemu-asset-hash",
182 self.hash.encode('utf8'))
189 raise AssetError(self, "Hash does not match %s" % self.hash)