diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-10 15:25:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-10 15:25:54 +0200 |
commit | fda4ec23a9c6142f050d49040f81a0096ce4cdfd (patch) | |
tree | f9a24642e8c4eef7e0d962093d2dda31047110fa | |
parent | 67af141e3affa21dc9118c7f0060ab746cfb6fba (diff) |
Fix bug in dist checksum implementation
-rw-r--r-- | build2/dist/operation.cxx | 9 |
1 files 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<paths> (cs)) + if (cs) { - auto cp (split (p, ap.first, "dist.checksums")); - checksum (a, cp.first, cp.second); + for (const path& p: cast<paths> (cs)) + { + auto cp (split (p, ap.first, "dist.checksums")); + checksum (a, cp.first, cp.second); + } } } } |