diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-09 21:40:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-09 21:40:03 +0200 |
commit | 003a4d697b9944602418fca8c82fa244433512ea (patch) | |
tree | 43b52decef9fa110e9dcdfcb0822afbd7f558358 /bpkg/manifest.cxx | |
parent | 3e06cb9f5a8685ea5e3d4201ca622ae46a235d0e (diff) |
Support comment in the repository email manifest value
Diffstat (limited to 'bpkg/manifest.cxx')
-rw-r--r-- | bpkg/manifest.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bpkg/manifest.cxx b/bpkg/manifest.cxx index 0923a48..2cad721 100644 --- a/bpkg/manifest.cxx +++ b/bpkg/manifest.cxx @@ -1735,10 +1735,12 @@ namespace bpkg if (email) bad_name ("email redefinition"); + string c (split_comment (v)); + if (v.empty ()) bad_value ("empty email"); - email = move (v); + email = email_type (move (v), move (c)); } else if (n == "summary") { @@ -1824,7 +1826,7 @@ namespace bpkg if (!b) bad_value ("email not allowed"); - s.next ("email", *email); + s.next ("email", add_comment (*email, email->comment)); } if (summary) |