diff options
-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); + } } } } |