// 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;
}
#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);
}
// 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;
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];
// 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;