diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-13 23:31:05 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-15 12:12:30 +0300 |
commit | 0e1deb6510594c896804b7409e2f33fd2d035e3d (patch) | |
tree | 5b5fbeaeceaa6720416ceb9a6ca79e5cab49e578 /bpkg/fetch-bpkg.cxx | |
parent | fbc7f6db25c322ea0da0a13d080d07b84f8bc497 (diff) |
Adapt to package/repository manifests API change
Diffstat (limited to 'bpkg/fetch-bpkg.cxx')
-rw-r--r-- | bpkg/fetch-bpkg.cxx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/bpkg/fetch-bpkg.cxx b/bpkg/fetch-bpkg.cxx index 39f84f9..4fe0bfc 100644 --- a/bpkg/fetch-bpkg.cxx +++ b/bpkg/fetch-bpkg.cxx @@ -167,14 +167,14 @@ namespace bpkg static const path repositories ("repositories"); - repository_manifests + bpkg_repository_manifests bpkg_fetch_repositories (const dir_path& d, bool iu) { - return fetch_manifest<repository_manifests> ( + return fetch_manifest<bpkg_repository_manifests> ( nullptr, d / repositories, iu).first; } - pair<repository_manifests, string/*checksum*/> + pair<bpkg_repository_manifests, string/*checksum*/> bpkg_fetch_repositories (const common_options& o, const repository_location& rl, bool iu) @@ -187,19 +187,20 @@ namespace bpkg f /= repositories; return rl.remote () - ? fetch_manifest<repository_manifests> (o, u, iu) - : fetch_manifest<repository_manifests> (&o, f, iu); + ? fetch_manifest<bpkg_repository_manifests> (o, u, iu) + : fetch_manifest<bpkg_repository_manifests> (&o, f, iu); } static const path packages ("packages"); - package_manifests + bpkg_package_manifests bpkg_fetch_packages (const dir_path& d, bool iu) { - return fetch_manifest<package_manifests> (nullptr, d / packages, iu).first; + return fetch_manifest<bpkg_package_manifests> ( + nullptr, d / packages, iu).first; } - pair<package_manifests, string/*checksum*/> + pair<bpkg_package_manifests, string/*checksum*/> bpkg_fetch_packages (const common_options& o, const repository_location& rl, bool iu) @@ -212,8 +213,8 @@ namespace bpkg f /= packages; return rl.remote () - ? fetch_manifest<package_manifests> (o, u, iu) - : fetch_manifest<package_manifests> (&o, f, iu); + ? fetch_manifest<bpkg_package_manifests> (o, u, iu) + : fetch_manifest<bpkg_package_manifests> (&o, f, iu); } static const path signature ("signature"); |