Fix the calculation of package verification code which should not include algorithm information.
Bug: 293304694 Test: atest --host sbom_data_test Test: build/soong/tests/sbom_test.sh Change-Id: I94ea42284a9a6b5cc787a3489bfa575aa7663282
This commit is contained in:
@@ -133,7 +133,7 @@ class Document:
|
||||
checksums = []
|
||||
for file in self.files:
|
||||
if file.id in package.file_ids:
|
||||
checksums.append(file.checksum)
|
||||
checksums.append(file.checksum.split(': ')[1])
|
||||
checksums.sort()
|
||||
h = hashlib.sha1()
|
||||
h.update(''.join(checksums).encode(encoding='utf-8'))
|
||||
|
Reference in New Issue
Block a user