aboutsummaryrefslogtreecommitdiff
path: root/bpkg/archive.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-01-31 12:24:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-02-03 16:15:30 +0300
commitfafc5727732c7df2c98b123292f483411e0050e3 (patch)
tree2d67d33a557e82a694ba9d48a90cad99fd33e49f /bpkg/archive.hxx
parent85b7dc75597386777ebe1f7158e798eff968a4bf (diff)
Add support for bootstrap-build and root-build values in package manifest
Diffstat (limited to 'bpkg/archive.hxx')
-rw-r--r--bpkg/archive.hxx11
1 files changed, 11 insertions, 0 deletions
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