From fda4ec23a9c6142f050d49040f81a0096ce4cdfd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Jul 2018 15:25:54 +0200 Subject: Fix bug in dist checksum implementation --- build2/dist/operation.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index 8a22299..b1b1e6c 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -467,10 +467,13 @@ namespace build2 auto ap (split (p, dist_root, "dist.archives")); path a (archive (dist_root, dist_package, ap.first, ap.second)); - for (const path& p: cast (cs)) + if (cs) { - auto cp (split (p, ap.first, "dist.checksums")); - checksum (a, cp.first, cp.second); + for (const path& p: cast (cs)) + { + auto cp (split (p, ap.first, "dist.checksums")); + checksum (a, cp.first, cp.second); + } } } } -- cgit v1.1