From 254593cf0b8386b9c1ee189c19d8221f7de201f1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 14 Dec 2022 14:22:23 +0200 Subject: Adjust to build system interface change --- bpkg/package-skeleton.cxx | 7 ++++--- 1 file 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 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) -- cgit v1.1