]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
snapshots: Call it store/restore
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2023 08:11:23 +0000 (08:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Mar 2023 08:11:23 +0000 (08:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/build.c
src/libpakfire/include/pakfire/snapshot.h
src/libpakfire/snapshot.c

index 411964d980b2d66f5f41fdda9f2575346407eadc..e12ce63f0c4899f6edc42b352a753822e215d29a 100644 (file)
@@ -1685,8 +1685,8 @@ static int pakfire_build_init(struct pakfire_build* build) {
 
        // Update the snapshot if there were changes
        if (!pakfire_build_has_flag(build, PAKFIRE_BUILD_DISABLE_SNAPSHOT) && snapshot_needs_update) {
-               // Create a new snapshot
-               r = pakfire_snapshot_create(build->pakfire);
+               // Store the snapshot
+               r = pakfire_snapshot_store(build->pakfire);
                if (r)
                        return r;
        }
index 3a8e756772838c3efb0c4a2fc27273c673efeb62..7fb5b6d01c4b4d87ddef3c311beb6d4384500566 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <pakfire/pakfire.h>
 
-int pakfire_snapshot_create(struct pakfire* pakfire);
+int pakfire_snapshot_store(struct pakfire* pakfire);
 int pakfire_snapshot_restore(struct pakfire* pakfire);
 
 int pakfire_snapshot_compress(struct pakfire* pakfire, FILE* f);
index c4dc8fd644bf210796b4ade79c2a70f25eeb5d63..fcc3de23461bd2442503a99e87ef3a9dd2f379ab 100644 (file)
@@ -137,7 +137,7 @@ int pakfire_snapshot_compress(struct pakfire* pakfire, FILE* f) {
        }
 
        // Write the payload to the archive
-       r = pakfire_compress(pakfire, archive, filelist, _("Writing snapshot..."),
+       r = pakfire_compress(pakfire, archive, filelist, _("Storing Snapshot"),
                PAKFIRE_COMPRESS_SHOW_THROUGHPUT, 0);
        if (r)
                goto ERROR;
@@ -161,7 +161,7 @@ ERROR:
        return r;
 }
 
-int pakfire_snapshot_create(struct pakfire* pakfire) {
+int pakfire_snapshot_store(struct pakfire* pakfire) {
        FILE* f = NULL;
        char tmppath[PATH_MAX];
        char path[PATH_MAX];
@@ -245,7 +245,7 @@ int pakfire_snapshot_extract(struct pakfire* pakfire, FILE* f) {
 
        // Extract snapshot
        r = pakfire_extract(pakfire, archive, st.st_size, NULL, NULL,
-                       _("Extracting snapshot..."), NULL, PAKFIRE_EXTRACT_SHOW_THROUGHPUT);
+                       _("Restoring Snapshot"), NULL, PAKFIRE_EXTRACT_SHOW_THROUGHPUT);
        if (r)
                goto ERROR;