From 3b0080e3b0d395de7551cc2ce1ec89189e539eab Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Tue, 19 May 2020 13:43:30 -0700 Subject: [vcpkg] Harden file removals and clean directory contents in "CI" inside vcpkg itself. (#11432) `files.h/files.cpp`: * Add end and else comments to all macros. * Add "remove_all_inside" function which empties a directory without actually deleting the directory. This is necessary to handle the case where the directory is actually a directory symlink. * Change remove_all to use std::remove when VCPKG_USE_STD_FILESYSTEM is set; this will engage POSIX delete support available on current Win10. `commands.ci.cpp`: empty "installed". `*/initialize_environment.*`: No longer clean the directories outside the tool. `ci-step.ps1`: Remove unused console output tee-ing. --- scripts/azure-pipelines/linux/initialize-environment.sh | 4 ---- 1 file changed, 4 deletions(-) (limited to 'scripts/azure-pipelines/linux') diff --git a/scripts/azure-pipelines/linux/initialize-environment.sh b/scripts/azure-pipelines/linux/initialize-environment.sh index 5346345a5..1cbdd3326 100755 --- a/scripts/azure-pipelines/linux/initialize-environment.sh +++ b/scripts/azure-pipelines/linux/initialize-environment.sh @@ -6,7 +6,3 @@ if [ ! -d "archives" ]; then ln -s /archives archives fi - -rm -rf installed -rm -rf buildtrees -rm -rf packages/* -- cgit v1.2.3