]> git.ipfire.org Git - pakfire.git/commitdiff
file: Re-enable parsing checksums again
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 16:19:53 +0000 (16:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 16:19:53 +0000 (16:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/file.c

index b4f1ae87fc7befadaed442866beaa06c2a940a90..1e1736da5cd69e89f54beb2b84529162fa7a04ee 100644 (file)
@@ -323,7 +323,6 @@ static int pakfire_file_from_archive_entry(struct pakfire_file* file, struct arc
                        if (r)
                                goto ERROR;
 
-#if 0
                // Digest: SHA-3-512
                } else if (strcmp(attr, "PAKFIRE.digests.sha3_512") == 0) {
                        r = pakfire_file_set_checksum(file, PAKFIRE_HASH_SHA3_512, value, size);
@@ -359,7 +358,6 @@ static int pakfire_file_from_archive_entry(struct pakfire_file* file, struct arc
                        r = pakfire_file_set_checksum(file, PAKFIRE_HASH_SHA2_256, value, size);
                        if (r < 0)
                                goto ERROR;
-#endif
 
                // Capabilities
                } else if (strcmp(attr, "security.capability") == 0) {