mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-03 04:01:34 +00:00
3rd_party: Create 3rd_party dir on swupd_init()
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
+1
-1
@@ -229,7 +229,7 @@ int create_state_dirs(const char *state_dir_path)
|
||||
unsigned int i;
|
||||
char *dir;
|
||||
#define STATE_DIR_COUNT (sizeof(state_dirs) / sizeof(state_dirs[0]))
|
||||
const char *state_dirs[] = { "delta", "staged", "download", "telemetry", "bundles" };
|
||||
const char *state_dirs[] = { "delta", "staged", "download", "telemetry", "bundles", "3rd_party" };
|
||||
|
||||
// check for existence
|
||||
if (ensure_root_owned_dir(state_dir_path)) {
|
||||
|
||||
@@ -1626,7 +1626,7 @@ create_test_environment() { # swupd_function
|
||||
|
||||
# state files & dirs
|
||||
debug_msg "Creating a state dir"
|
||||
sudo mkdir -p "$statedir"/{staged,download,delta,telemetry,bundles}
|
||||
sudo mkdir -p "$statedir"/{staged,download,delta,telemetry,bundles,3rd_party}
|
||||
sudo chmod -R 0700 "$statedir"
|
||||
|
||||
# export environment variables that are dependent of the test env
|
||||
|
||||
Reference in New Issue
Block a user