]> git.ipfire.org Git - pakfire.git/commitdiff
packager: Add SHA256 checksums to filelists
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 09:29:08 +0000 (09:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 09:29:08 +0000 (09:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/packager.c
src/libpakfire/pakfire.c

index 5f7549f06d762bdf86dc7cfab86985d24a38abd0..7d59575a4ac0779b3cdcca9d98c00ec1272ab49e 100644 (file)
@@ -210,6 +210,7 @@ static int pakfire_packager_create_payload(struct pakfire_packager* p) {
 
                // Enable cryptographic checksums
                "sha512",
+               "sha256",
 
                NULL,
        };
@@ -223,6 +224,7 @@ static int pakfire_packager_create_payload(struct pakfire_packager* p) {
 
        // Add a requirement for the cryptographic algorithms we are using
        pakfire_package_add_requires(p->pkg, "pakfire(Digest-SHA512)");
+       pakfire_package_add_requires(p->pkg, "pakfire(Digest-SHA256)");
 
        return 0;
 }
@@ -667,6 +669,7 @@ int pakfire_packager_finish(struct pakfire_packager* packager, FILE* f) {
 
                // Add the checksums
                "sha512",
+               "sha256",
 
                NULL,
        };
index 08fb8f20ec3624a0c3c0035ad524734b804aa1cb..96dff26a63c36fbe56f4ca4ff9171a7b5203c41e 100644 (file)
@@ -138,6 +138,7 @@ static const struct pakfire_feature {
 
        // Digests
        { "Digest-SHA512" },
+       { "Digest-SHA256" },
 
        // The end
        { NULL },