aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-create.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-29 17:30:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-29 17:30:19 +0200
commitcbcf98064cf2dd8a2da80932af799789dc2ca2a9 (patch)
treea9aab352148091f8d45a6abb4814c5a5db4536aa /bpkg/rep-create.cxx
parent203067a2742ad2cbb986369b216b1f1ecfb96458 (diff)
Add --tar, --tar-option options, test with bsdtar
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r--bpkg/rep-create.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx
index 8cb1827..291374e 100644
--- a/bpkg/rep-create.cxx
+++ b/bpkg/rep-create.cxx
@@ -52,7 +52,10 @@ namespace bpkg
using package_map = map<package_key, package_data>;
static void
- collect (package_map& map, const dir_path& d, const dir_path& root)
+ collect (const common_options& co,
+ package_map& map,
+ const dir_path& d,
+ const dir_path& root)
try
{
tracer trace ("collect");
@@ -73,7 +76,7 @@ namespace bpkg
{
case entry_type::directory:
{
- collect (map, path_cast<dir_path> (d / p), root);
+ collect (co, map, path_cast<dir_path> (d / p), root);
continue;
}
case entry_type::regular:
@@ -94,7 +97,7 @@ namespace bpkg
// Verify archive is a package and get its manifest.
//
path a (d / p);
- package_manifest m (pkg_verify (a));
+ package_manifest m (pkg_verify (co, a));
level4 ([&]{trace << m.name << " " << m.version << " in " << a;});
@@ -129,7 +132,7 @@ namespace bpkg
}
void
- rep_create (const rep_create_options&, cli::scanner& args)
+ rep_create (const rep_create_options& o, cli::scanner& args)
try
{
tracer trace ("rep_create");
@@ -151,7 +154,7 @@ namespace bpkg
// collecting all the manifests in a map we get a sorted list.
//
package_map pm;
- collect (pm, d, d);
+ collect (o, pm, d, d);
// Serialize.
//