diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-11 12:12:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-11 12:12:08 +0200 |
commit | 9f34890ff201588e829174f5e19634ddcd159206 (patch) | |
tree | bcf66d329e6d4390306e836e743097f532cef67c /bpkg/cfg-create.cxx | |
parent | a880d01c59c6962f06b969552a524792239e9300 (diff) |
Add tracing to mk(), rm() functions
Diffstat (limited to 'bpkg/cfg-create.cxx')
-rw-r--r-- | bpkg/cfg-create.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bpkg/cfg-create.cxx b/bpkg/cfg-create.cxx index 4fa5de3..1875c75 100644 --- a/bpkg/cfg-create.cxx +++ b/bpkg/cfg-create.cxx @@ -31,8 +31,12 @@ namespace bpkg // if (exists (d)) { + level5 ([&]{trace << "directory " << d << " exists";}); + if (!empty (d)) { + level5 ([&]{trace << "directory " << d << " not empty";}); + if (!o.wipe ()) fail << "directory " << d << " is not empty"; @@ -40,7 +44,10 @@ namespace bpkg } } else + { + level5 ([&]{trace << "directory " << d << " does not exist";}); mk_p (d); + } // Sort arguments into modules and configuration variables. // |