]> git.ipfire.org Git - pakfire.git/commitdiff
packager: Sort the filelist before writing the package
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2022 11:13:57 +0000 (11:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2022 11:13:57 +0000 (11:13 +0000)
This is probably not strictly necessary, but is nicer for humans.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/packager.c

index 7426ec01ed8bbe9c269c75fe8eecb3e17e1c492f..7e660a1641373b8e5f89068a53e5759f8e9d3a77 100644 (file)
@@ -385,6 +385,9 @@ int pakfire_packager_finish(struct pakfire_packager* packager, FILE* f) {
                        goto ERROR;
        }
 
+       // Sort the filelist
+       pakfire_filelist_sort(packager->filelist);
+
 #ifdef ENABLE_DEBUG
        DEBUG(packager->pakfire, "Filelist:\n");