aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2020-09-27 17:30:59 -0700
committerGitHub <noreply@github.com>2020-09-27 17:30:59 -0700
commitae82a554f80e49f29d528f6ec395211ea0b7939b (patch)
tree427e339a92acbda870ff791c1ae6e0cb10bd9e5a
parenta989880479cd5a7e4fcd115cbf89b9038938b3b4 (diff)
downloadvcpkg-ae82a554f80e49f29d528f6ec395211ea0b7939b.tar.gz
vcpkg-ae82a554f80e49f29d528f6ec395211ea0b7939b.zip
[vcpkg] Skip all files named .DS_Store, no need to check if the file is regular (#13669)
-rw-r--r--toolsrc/src/vcpkg/paragraphs.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg/paragraphs.cpp b/toolsrc/src/vcpkg/paragraphs.cpp
index 19c1d266d..d14e0176e 100644
--- a/toolsrc/src/vcpkg/paragraphs.cpp
+++ b/toolsrc/src/vcpkg/paragraphs.cpp
@@ -354,9 +354,8 @@ namespace vcpkg::Paragraphs
Util::sort(port_dirs);
// TODO: search in `b-` for ports starting with `b`
- Util::erase_remove_if(port_dirs, [&](auto&& port_dir_entry) {
- return fs.is_regular_file(port_dir_entry) && port_dir_entry.filename() == ".DS_Store";
- });
+ Util::erase_remove_if(port_dirs,
+ [&](auto&& port_dir_entry) { return port_dir_entry.filename() == ".DS_Store"; });
for (auto&& path : port_dirs)
{