def invalidation_hash(self): hasher = sha1() sources_hash = hash_sources(get_buildroot(), self.sources_rel_path, self.sources) hasher.update(sources_hash) if self.provides: hasher.update(bytes(hash(self.provides))) for exclude in sorted(self.excludes): hasher.update(bytes(hash(exclude))) for config in sorted(self.configurations): hasher.update(config) if self.package: hasher.update(bytes(self.package)) return hasher.hexdigest()
def invalidation_hash(self): hasher = sha1() sources_hash = hash_sources(get_buildroot(), self.sources_rel_path, self.sources) hasher.update(sources_hash) if self.provides: hasher.update(bytes(hash(self.provides))) for exclude in sorted(self.excludes): hasher.update(bytes(hash(exclude))) for config in sorted(self.configurations): hasher.update(config) if self.package: hasher.update(bytes(self.package)) return hasher.hexdigest()
def invalidation_hash(self): return hash_sources(get_buildroot(), self.sources_rel_path, self.sources)
def invalidation_hash(self): return hash_sources(get_buildroot(), self.sources_rel_path, self.sources)