diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-12-22 21:52:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-01-17 19:22:38 +0300 |
commit | 4a5ca6f9853938eec8b5e487dc6cb3728dfb6a15 (patch) | |
tree | 29963bae3dddd53f8d17b10e0e77761f62a78d25 /mod/mod-package-version-details.cxx | |
parent | 36115f92a7fdebaf13cb968b1acfe3c9973c0df4 (diff) |
Adapt to package manifest dependency classes change
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r-- | mod/mod-package-version-details.cxx | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index f1a641b..4a1f0c1 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -325,9 +325,6 @@ handle (request& rq, response& rs) s << TR(CLASS="depends") << TH; - if (das.conditional) - s << '?'; - if (das.buildtime) s << '*'; @@ -340,9 +337,30 @@ handle (request& rq, response& rs) if (&da != &das[0]) s << " | "; - assert (da.size () == 1); // @@ DEP + // Should we enclose multiple dependencies into curly braces as in the + // manifest? Somehow feels redundant here, since there can't be any + // ambiguity (dependency group version constraint is already punched + // into the specific dependencies without constraints). + // + for (const dependency& d: da) + { + if (&d != &da[0]) + s << ' '; + + print_dependency (d); + } + + if (da.enable) + { + s << " ? ("; - print_dependency (da[0]); + if (full) + s << *da.enable; + else + s << "..."; + + s << ')'; + } } s << ~SPAN |