diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-12 15:28:32 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-07-12 15:34:00 +0300 |
commit | 4b5c7b13f0ebd44c05b50ef8c3e56b0d02bfc4fe (patch) | |
tree | 82b8748af9b4b5cb43f062adfd5060e345fef92c /mod/options.cli | |
parent | 30f4cd73410479a95cc7a21958a594d2d7e5993f (diff) |
Use 'builds' parameter instead of 'pn' for ?builds handler
Diffstat (limited to 'mod/options.cli')
-rw-r--r-- | mod/options.cli | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mod/options.cli b/mod/options.cli index 97453a7..62a339d 100644 --- a/mod/options.cli +++ b/mod/options.cli @@ -572,7 +572,21 @@ namespace brep // Package name wildcard. An empty value is treated the same way as *. // - string name | pn; + // We used to generate URLs like: + // + // https://cppget.org/?builds&pn=bbot + // + // This looked a bit verbose, so now we produce URLs like: + // + // https://cppget.org/?builds=bbot + // + // To support the already distributed URLs the name_legacy (pn) parameter + // overrides the name (builds) parameter, if present. Note that the + // builds parameter is renamed to '_' by the root handler (see the + // request_proxy class for details). + // + string name | _; + string name_legacy | pn; // Package version. If empty or *, then no version constraint is applied. // Otherwise the build package version must match the value exactly. |