From 333c5953151d6324d83d279a7ac3c53cd1af54b9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Sep 2015 10:58:17 +0200 Subject: Implement pkg-verify, pkg-fetch commands --- bpkg/pkg-verify | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bpkg/pkg-verify (limited to 'bpkg/pkg-verify') diff --git a/bpkg/pkg-verify b/bpkg/pkg-verify new file mode 100644 index 0000000..e002bf3 --- /dev/null +++ b/bpkg/pkg-verify @@ -0,0 +1,27 @@ +// file : bpkg/pkg-verify -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_PKG_VERIFY +#define BPKG_PKG_VERIFY + +#include + +#include +#include + +namespace bpkg +{ + void + pkg_verify (const pkg_verify_options&, cli::scanner& args); + + // Verify archive is a valid package and return its manifest. Throw + // failed if invalid or if something goes wrong. If diag is false, + // then don't issue diagnostics about the reason why the package is + // invalid. + // + package_manifest + pkg_verify (const path& archive, bool diag = true); +} + +#endif // BPKG_PKG_VERIFY -- cgit v1.1