diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-20 05:20:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-22 14:14:40 +0300 |
commit | 2fe7c710b13a0cd429b800fe5e147414c6c63596 (patch) | |
tree | a8fdb9f1ce281330846f6db230baf977aeab3381 /bpkg/fetch.cxx | |
parent | 3105c27bd7d42ee55c55650f83c7fc3483188b82 (diff) |
Make use of butl::sha256 class
Diffstat (limited to 'bpkg/fetch.cxx')
-rw-r--r-- | bpkg/fetch.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index a4f238a..d6e7d76 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -640,9 +640,10 @@ namespace bpkg is.close (); - string sha256sum (sha256 (o, bs)); + string s (bs.str ()); + string sha256sum (sha256 (s.c_str (), s.size ())); - istringstream ts (bs.str ()); // Text mode. + istringstream ts (s); // Text mode. manifest_parser mp (ts, url); M m (mp, ignore_unknown); |