improved metadata safety when sealing -- always needs to refresh

This commit is contained in:
Chris Punches
2025-03-26 01:18:09 -04:00
parent 1d34a62e38
commit 15360edc42
2 changed files with 30 additions and 19 deletions

View File

@@ -25,6 +25,7 @@
#include <archive_entry.h>
#include <fcntl.h>
#include <unistd.h>
#include <metadata.hpp>
/**
* @brief First phase of sealing a package stage directory
@@ -57,12 +58,12 @@ int seal_final_package(const std::string &stage_dir, const std::string &output_d
* Extracts a sealed package file back to its original stage directory structure
* by expanding the gzipped tarballs.
*
* @param package_filepath Path to the sealed package file
* @param package_path Path to the sealed package file
* @param output_dir Path to extract the package stage to
* @param force Whether to force the operation even if warnings occur
* @return 0 on success, non-zero on failure
*/
int unseal_package(const std::string& package_filepath, const std::string& output_dir, bool force);
int unseal_package(const std::string& package_path, const std::string& output_dir, bool force);
/**