aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-result.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-24 00:25:45 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-24 17:11:47 +0300
commit6ce19c537bd9de8d3c9821841bc5ed680b762742 (patch)
tree2a487b1d5ec75b05e3001a461f149e14e5a859a8 /mod/mod-build-result.cxx
parent3363e1239973a66722f681999771964e39a98332 (diff)
Adapt to inventing package_name type
Diffstat (limited to 'mod/mod-build-result.cxx')
-rw-r--r--mod/mod-build-result.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/mod/mod-build-result.cxx b/mod/mod-build-result.cxx
index 024502a..1253d14 100644
--- a/mod/mod-build-result.cxx
+++ b/mod/mod-build-result.cxx
@@ -117,9 +117,12 @@ handle (request& rq, response&)
if (p == string::npos)
throw invalid_argument ("no package version");
- string& name (rqm.result.name);
- if (name.compare (0, name.size (), s, 0, p) != 0)
- throw invalid_argument ("package name mismatch");
+ package_name& name (rqm.result.name);
+ {
+ const string& n (name.string ());
+ if (n.compare (0, n.size (), s, 0, p) != 0)
+ throw invalid_argument ("package name mismatch");
+ }
size_t b (p + 1); // Start of version.
p = s.find ('/', b); // End of version.
@@ -383,7 +386,8 @@ handle (request& rq, response&)
try
{
string subj ((unforced ? "build " : "rebuild ") +
- to_string (*b->status) + ": " + b->package_name + '/' +
+ to_string (*b->status) + ": " +
+ b->package_name.string () + '/' +
b->package_version.string () + '/' + b->configuration + '/' +
b->toolchain_name + '-' + b->toolchain_version.string ());