summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-01-16 15:51:01 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-01-16 15:59:29 +0100
commit48ec5ecccd5eafce2f5f1cea80bfb0601d3d688d (patch)
treed23f5204221e5e85f01e71ff13f225db4010b775 /src
parent453f48b67d209f5c2b20040b6902f54fa71d7064 (diff)
downloadjustbuild-48ec5ecccd5eafce2f5f1cea80bfb0601d3d688d.tar.gz
just-mr fetch: drop redundant directory creation
just-mr fetch is supposed to fetch to the first (in search order) distdir that is an existing directory (and error out if no such directory exists). So, once a directory is found, there is no need to create it---we already verified it is an existing directory.
Diffstat (limited to 'src')
-rw-r--r--src/other_tools/just_mr/main.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp
index 3ecfe46d..c86e1583 100644
--- a/src/other_tools/just_mr/main.cpp
+++ b/src/other_tools/just_mr/main.cpp
@@ -574,13 +574,6 @@ void DefaultReachableRepositories(
}
Logger::Log(LogLevel::Info, "Fetching to {}", fetch_dir->string());
- // make sure fetch_dir exists
- if (not FileSystemManager::CreateDirectory(*fetch_dir)) {
- Logger::Log(LogLevel::Error,
- "Failed to create fetch directory {}",
- fetch_dir->string());
- return kExitFetchError;
- }
// gather all repos to be fetched
std::vector<ArchiveRepoInfo> repos_to_fetch{};