aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-builds.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-09-28 20:47:17 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-28 20:47:17 +0300
commitdc8aa85f3d78fccf204530c8db6baf68229edf5e (patch)
tree4d2d52e07644369d6d9def84dbb6724523698fab /mod/mod-builds.cxx
parentcdcb44468670b2f557070c43f2ca6dd389eda03c (diff)
Adapt to swapping of entry and pattern parameters in butl::path_match()
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r--mod/mod-builds.cxx4
1 files changed, 2 insertions, 2 deletions
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.
{