From b13332c991ce2695626eaca367dd8208b174c9ca Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Apr 2016 17:59:24 +0300 Subject: Add support for repository authentication --- bpkg/fetch | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'bpkg/fetch') diff --git a/bpkg/fetch b/bpkg/fetch index 2867243..2153df4 100644 --- a/bpkg/fetch +++ b/bpkg/fetch @@ -14,23 +14,26 @@ namespace bpkg { - class checksum_mismatch: public std::exception {}; - - repository_manifests fetch_repositories (const dir_path&, - bool ignore_unknown); - - // Verify the checksum and throw checksum_mismatch if it doesn't match. - // - repository_manifests fetch_repositories (const common_options&, - const repository_location&, - const string& sha256sum, - bool ignore_unknown); - - package_manifests fetch_packages (const dir_path&, - bool ignore_unknown); - package_manifests fetch_packages (const common_options&, - const repository_location&, - bool ignore_unknown); + repository_manifests + fetch_repositories (const dir_path&, bool ignore_unknown); + + pair + fetch_repositories (const common_options&, + const repository_location&, + bool ignore_unknown); + + package_manifests + fetch_packages (const dir_path&, bool ignore_unknown); + + pair + fetch_packages (const common_options&, + const repository_location&, + bool ignore_unknown); + + signature_manifest + fetch_signature (const common_options&, + const repository_location&, + bool ignore_unknown); path fetch_archive (const common_options&, -- cgit v1.1