aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-14 14:22:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-14 14:22:23 +0200
commit254593cf0b8386b9c1ee189c19d8221f7de201f1 (patch)
tree546ae75474270e01e4df8960b679ffab53467521
parentb1becabe15972d3ddc7cf14e7840e03766ea9600 (diff)
Adjust to build system interface change
-rw-r--r--bpkg/package-skeleton.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/bpkg/package-skeleton.cxx b/bpkg/package-skeleton.cxx
index 8e4aa38..7b2a99e 100644
--- a/bpkg/package-skeleton.cxx
+++ b/bpkg/package-skeleton.cxx
@@ -391,7 +391,7 @@ namespace bpkg
else
{
storage.clear ();
- names_view nv (reverse (val, storage));
+ names_view nv (reverse (val, storage, true /* reduce */));
if (!nv.empty ())
{
@@ -406,7 +406,8 @@ namespace bpkg
return r;
}
- // Reverse value to names.
+ // Reverse value to names reducing empty simple value to empty list of
+ // names.
//
static optional<build2::names>
reverse_value (const build2::value& val)
@@ -417,7 +418,7 @@ namespace bpkg
return nullopt;
names storage;
- names_view nv (reverse (val, storage));
+ names_view nv (reverse (val, storage, true /* reduce */));
return (nv.data () == storage.data ()
? move (storage)