aboutsummaryrefslogtreecommitdiff
path: root/build2/dist/operation.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-07-10 15:25:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-07-10 15:25:54 +0200
commitfda4ec23a9c6142f050d49040f81a0096ce4cdfd (patch)
treef9a24642e8c4eef7e0d962093d2dda31047110fa /build2/dist/operation.cxx
parent67af141e3affa21dc9118c7f0060ab746cfb6fba (diff)
Fix bug in dist checksum implementation
Diffstat (limited to 'build2/dist/operation.cxx')
-rw-r--r--build2/dist/operation.cxx9
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);
+ }
}
}
}