aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 08:56:10 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 08:56:10 -0500
commit0760a46ffad286520f59cade3082ef79cdefa3d0 (patch)
tree80f2c750108a3857107f9e0b9e32c2ada1373284 /src
parentc81d2cef8a8819ee661d55fa70ae5f6fa206edeb (diff)
downloadstasis-0760a46ffad286520f59cade3082ef79cdefa3d0.tar.gz
Replace mkdir() calls with mkdirs() (from copy.h)
Diffstat (limited to 'src')
-rw-r--r--src/deliverable.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/deliverable.c b/src/deliverable.c
index 1eb5d18..f77bfbb 100644
--- a/src/deliverable.c
+++ b/src/deliverable.c
@@ -78,25 +78,22 @@ void delivery_free(struct Delivery *ctx) {
}
void delivery_init_dirs(struct Delivery *ctx) {
- mkdir("build", 0755);
- mkdir("build/recipes", 0755);
- mkdir("build/sources", 0755);
- mkdir("build/testing", 0755);
+ mkdirs("build/recipes", 0755);
+ mkdirs("build/sources", 0755);
+ mkdirs("build/testing", 0755);
ctx->storage.build_dir = realpath("build", NULL);
ctx->storage.build_recipes_dir = realpath("build/recipes", NULL);
ctx->storage.build_sources_dir = realpath("build/sources", NULL);
ctx->storage.build_testing_dir = realpath("build/testing", NULL);
- mkdir("output", 0755);
- mkdir("output/omc", 0755);
- mkdir("output/packages", 0755);
- mkdir("output/packages/conda", 0755);
- mkdir("output/packages/wheels", 0755);
+ mkdirs("output/omc", 0755);
+ mkdirs("output/packages/conda", 0755);
+ mkdirs("output/packages/wheels", 0755);
ctx->storage.delivery_dir = realpath("output/omc", NULL);
ctx->storage.conda_artifact_dir = realpath("output/packages/conda", NULL);
ctx->storage.wheel_artifact_dir = realpath("output/packages/wheels", NULL);
- mkdir(CONDA_INSTALL_PREFIX, 0755);
+ mkdirs(CONDA_INSTALL_PREFIX, 0755);
ctx->storage.conda_install_prefix = realpath(CONDA_INSTALL_PREFIX, NULL);
}