From fafc5727732c7df2c98b123292f483411e0050e3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 31 Jan 2022 12:24:28 +0300 Subject: Add support for bootstrap-build and root-build values in package manifest --- bpkg/archive.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bpkg/archive.hxx') diff --git a/bpkg/archive.hxx b/bpkg/archive.hxx index cfc4cdb..44b3f01 100644 --- a/bpkg/archive.hxx +++ b/bpkg/archive.hxx @@ -45,6 +45,17 @@ namespace bpkg const path& archive, const path& file, bool diag = true); + + // Start the processes similar to the above functions but execute tar in the + // archive contents listing mode (-t) and then parse its stdout as a list of + // paths (one per line). If diag is false, then don't issue diagnostics + // about the reason why the contents can't be obtained (the archive is + // broken, etc). + // + paths + archive_contents (const common_options&, + const path& archive, + bool diag = true); } #endif // BPKG_ARCHIVE_HXX -- cgit v1.1