From 48ec5ecccd5eafce2f5f1cea80bfb0601d3d688d Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Mon, 16 Jan 2023 15:51:01 +0100 Subject: 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. --- src/other_tools/just_mr/main.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src') 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 repos_to_fetch{}; -- cgit v1.2.3