From dc8aa85f3d78fccf204530c8db6baf68229edf5e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 28 Sep 2019 20:47:17 +0300 Subject: Adapt to swapping of entry and pattern parameters in butl::path_match() --- mod/mod-builds.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/mod-builds.cxx') diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx index 640c172..ec469a4 100644 --- a/mod/mod-builds.cxx +++ b/mod/mod-builds.cxx @@ -755,11 +755,11 @@ handle (request& rq, response& rs) for (const auto& c: *build_conf_) { - if ((pc.empty () || path_match (pc, c.name)) && // Filter by name. + if ((pc.empty () || path_match (c.name, pc)) && // Filter by name. // Filter by target. // - (tg.empty () || path_match (tg, c.target.string ())) && + (tg.empty () || path_match (c.target.string (), tg)) && (!exclude_hidden || belongs (c, "all"))) // Filter hidden. { -- cgit v1.1