From cbcf98064cf2dd8a2da80932af799789dc2ca2a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Sep 2015 17:30:19 +0200 Subject: Add --tar, --tar-option options, test with bsdtar --- bpkg/rep-create.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'bpkg/rep-create.cxx') 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; 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 (d / p), root); + collect (co, map, path_cast (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. // -- cgit v1.1