aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-08 21:14:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-12 15:46:39 +0300
commit94bd8f38d5cbecd479e26928ca110f0bf1f64519 (patch)
tree470945e867551bc5b434a95a3da92d1d2cdd7852
parent393ab18520eb5019d00822ae744a4d4e65304226 (diff)
Adapt to dir_iterator API change
-rw-r--r--bpkg/manifest-utility.cxx3
-rw-r--r--bpkg/rep-create.cxx2
-rw-r--r--bpkg/rep-remove.cxx2
3 files changed, 3 insertions, 4 deletions
diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx
index 5bd273d..7a431b3 100644
--- a/bpkg/manifest-utility.cxx
+++ b/bpkg/manifest-utility.cxx
@@ -373,8 +373,7 @@ namespace bpkg
{
vector<pair<path, path>> r;
- for (const dir_entry& de:
- dir_iterator (config, false /* ignore_dangling */))
+ for (const dir_entry& de: dir_iterator (config, dir_iterator::no_follow))
{
if (de.type () == entry_type::regular)
{
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx
index 6c95679..67cca95 100644
--- a/bpkg/rep-create.cxx
+++ b/bpkg/rep-create.cxx
@@ -58,7 +58,7 @@ namespace bpkg
{
tracer trace ("collect");
- for (const dir_entry& de: dir_iterator (d, false /* ignore_dangling */))
+ for (const dir_entry& de: dir_iterator (d, dir_iterator::no_follow))
{
path p (de.path ());
diff --git a/bpkg/rep-remove.cxx b/bpkg/rep-remove.cxx
index 26d5725..700534f 100644
--- a/bpkg/rep-remove.cxx
+++ b/bpkg/rep-remove.cxx
@@ -336,7 +336,7 @@ namespace bpkg
try
{
- for (const dir_entry& de: dir_iterator (rd, false /* ignore_dangling */))
+ for (const dir_entry& de: dir_iterator (rd, dir_iterator::no_follow))
{
if (de.ltype () == entry_type::directory)
rmdir (db.config_orig, rd / path_cast<dir_path> (de.path ()));