]> git.ipfire.org Git - pakfire.git/commitdiff
snapshot: Remove the option to define packages
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:18:10 +0000 (15:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Oct 2024 15:18:35 +0000 (15:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/snapshot.h
src/libpakfire/pakfire.c
src/libpakfire/snapshot.c

index e7fa1018bf10c17b28df5985d24cab4a500c8e99..2803226879be3f97753291eb48283f73c8002d45 100644 (file)
@@ -42,8 +42,7 @@ const char* pakfire_snapshot_path(struct pakfire_snapshot* snapshot);
 int pakfire_snapshot_mount(struct pakfire_snapshot* snapshot, const char* path);
 int pakfire_snapshot_umount(struct pakfire_snapshot* snapshot);
 
-int pakfire_snapshot_make(struct pakfire_snapshot** snapshot,
-       struct pakfire* pakfire, const char** packages);
+int pakfire_snapshot_make(struct pakfire_snapshot** snapshot, struct pakfire* pakfire);
 
 int pakfire_snapshot_clean(struct pakfire* pakfire);
 
index af918b7ed88fd14269dbded1e52ea770181f9201..4ca2e01c16b41b3bcb6f8e3d64a0d2973ad181e8 100644 (file)
@@ -1722,13 +1722,8 @@ int pakfire_update_snapshot(struct pakfire* pakfire) {
        struct pakfire_snapshot* snapshot = NULL;
        int r;
 
-       const char* packages[] = {
-               "build-essential",
-               NULL,
-       };
-
        // Make a new snapshot
-       r = pakfire_snapshot_make(&snapshot, pakfire, packages);
+       r = pakfire_snapshot_make(&snapshot, pakfire);
        if (r < 0)
                goto ERROR;
 
index beb5c694440ecfd25d518934388c15f1822e0a70..0aef6cfc3c740fb24c1d70d8b54b4af9386888d1 100644 (file)
@@ -448,8 +448,7 @@ ERROR:
 /*
        Creates a new snapshot
 */
-int pakfire_snapshot_make(struct pakfire_snapshot** snapshot,
-               struct pakfire* pakfire, const char** packages) {
+int pakfire_snapshot_make(struct pakfire_snapshot** snapshot, struct pakfire* pakfire) {
        struct pakfire* p = NULL;
        char snapshot_path[PATH_MAX];
        char tmp[PATH_MAX];
@@ -457,6 +456,11 @@ int pakfire_snapshot_make(struct pakfire_snapshot** snapshot,
        char time[1024];
        int r;
 
+       const char* packages[] = {
+               "build-essential",
+               NULL,
+       };
+
        struct pakfire_ctx* ctx = pakfire_ctx(pakfire);
 
        // Store the current time