]> git.ipfire.org Git - pakfire.git/commitdiff
archive: Don't read the distribution twice
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:48:09 +0000 (18:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:48:09 +0000 (18:48 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/archive.c

index 6d742226b6427bf4045ef67679ae8b4d49beab99..4d8ea0fc5aa5be6244dc8e5821e22ce857bd4652 100644 (file)
@@ -1024,11 +1024,6 @@ static int pakfire_archive_make_package_from_json(struct pakfire_archive* archiv
        if (vendor)
                pakfire_package_set_vendor(pkg, vendor);
 
-       // Distribution
-       const char* distribution = pakfire_archive_metadata_get(archive, "distribution", NULL);
-       if (distribution)
-               pakfire_package_set_distribution(pkg, distribution);
-
        // UUID
        const char* uuid = pakfire_archive_metadata_get(archive, "uuid", NULL);
        if (uuid)