diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-09 08:57:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-10 07:15:52 +0200 |
commit | 843627b2d3f801a7e9e45af0cc2cd4654077fac8 (patch) | |
tree | 5c588297539bc0b41997c2490cbc0b5173b7a8e4 /bpkg/pkg-fetch.cxx | |
parent | 450d6159206501dd69c3e8877ad37eeb3cd15049 (diff) |
Add butl::sha256 to types.hxx
Diffstat (limited to 'bpkg/pkg-fetch.cxx')
-rw-r--r-- | bpkg/pkg-fetch.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/pkg-fetch.cxx b/bpkg/pkg-fetch.cxx index 531bf84..d065ff1 100644 --- a/bpkg/pkg-fetch.cxx +++ b/bpkg/pkg-fetch.cxx @@ -256,12 +256,12 @@ namespace bpkg // assert (ap->sha256sum); - const string& sha256sum (sha256 (co, a)); - if (sha256sum != *ap->sha256sum) + const string& cs (sha256sum (co, a)); + if (cs != *ap->sha256sum) { fail << "checksum mismatch for " << n << " " << v << info << pl->repository_fragment->name << " has " << *ap->sha256sum << - info << "fetched archive has " << sha256sum << + info << "fetched archive has " << cs << info << "consider re-fetching package list and trying again" << info << "if problem persists, consider reporting this to " << "the repository maintainer"; |