From 4b5c7b13f0ebd44c05b50ef8c3e56b0d02bfc4fe Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 12 Jul 2018 15:28:32 +0300 Subject: Use 'builds' parameter instead of 'pn' for ?builds handler --- mod/options.cli | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'mod/options.cli') 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. -- cgit v1.1