Remove disabled post-build check

This commit is contained in:
Alexander Karatarakis 2017-02-15 18:46:27 -08:00
parent 809d66c53d
commit 50187c07a7

View File

@ -425,24 +425,6 @@ namespace vcpkg::PostBuildLint
return lint_status::SUCCESS; return lint_status::SUCCESS;
} }
static lint_status check_no_subdirectories(const fs::path& dir)
{
const std::vector<fs::path> subdirectories = Files::recursive_find_matching_paths_in_dir(dir, [&](const fs::path& current)
{
return fs::is_directory(current);
});
if (!subdirectories.empty())
{
System::println(System::color::warning, "Directory %s should have no subdirectories", dir.generic_string());
System::println("The following subdirectories were found: ");
Files::print_paths(subdirectories);
return lint_status::ERROR_DETECTED;
}
return lint_status::SUCCESS;
}
static lint_status check_bin_folders_are_not_present_in_static_build(const fs::path& package_dir) static lint_status check_bin_folders_are_not_present_in_static_build(const fs::path& package_dir)
{ {
const fs::path bin = package_dir / "bin"; const fs::path bin = package_dir / "bin";
@ -700,10 +682,6 @@ namespace vcpkg::PostBuildLint
default: default:
Checks::unreachable(); Checks::unreachable();
} }
#if 0
error_count += check_no_subdirectories(package_dir / "lib");
error_count += check_no_subdirectories(package_dir / "debug" / "lib");
#endif
error_count += check_no_empty_folders(package_dir); error_count += check_no_empty_folders(package_dir);
error_count += check_no_files_in_package_dir_and_debug_dir(package_dir); error_count += check_no_files_in_package_dir_and_debug_dir(package_dir);