3rd_party: Create 3rd_party dir on swupd_init()

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
Otavio Pontes
2019-11-21 13:16:33 -08:00
parent 2131d96825
commit e7d4e6900a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)) {
+1 -1
View File
@@ -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