Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 def invalidation_hash(self):
   return hash_sources(get_buildroot(), self.sources_rel_path, self.sources)
Пример #4
0
 def invalidation_hash(self):
     return hash_sources(get_buildroot(), self.sources_rel_path,
                         self.sources)