diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-05 09:22:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-05 09:22:06 +0200 |
commit | b6746495ce6ee4ba5e3b414a7e401a8135ee1508 (patch) | |
tree | 9d18724c0144b9d4113f8ca2af30173aa210cc57 /mod | |
parent | 207e5156c5664822e0aee8bcc3057adc61027f5b (diff) |
Add support for build-time dependencies
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mod-package-version-details.cxx | 12 | ||||
-rw-r--r-- | mod/page.cxx | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index b2172ce..30933fb 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -212,6 +212,12 @@ handle (request& rq, response& rs) if (da.conditional) s << "?"; + if (da.buildtime) + s << "*"; + + if (da.conditional || da.buildtime) + s << " "; + s << ~TH << TD << SPAN(CLASS="value"); @@ -283,6 +289,12 @@ handle (request& rq, response& rs) if (ra.conditional) s << "?"; + if (ra.buildtime) + s << "*"; + + if (ra.conditional || ra.buildtime) + s << " "; + s << ~TH << TD << SPAN(CLASS="value"); diff --git a/mod/page.cxx b/mod/page.cxx index aba7581..2c1b4d1 100644 --- a/mod/page.cxx +++ b/mod/page.cxx @@ -293,6 +293,9 @@ namespace brep if (d.conditional) s << "?"; + if (d.buildtime) + s << "*"; + // Suppress package name duplicates. // set<string> names; @@ -373,6 +376,9 @@ namespace brep if (r.conditional) s << "?"; + if (r.buildtime) + s << "*"; + if (r.empty ()) { // If there is no requirement alternatives specified, then |