From c595aac0142436f64ada4f5412b821bfcc6db008 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 19 Sep 2019 17:43:02 +0300 Subject: Adapt to bracket expressions in wildcard patterns --- libbuild2/functions-filesystem.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libbuild2/functions-filesystem.cxx') diff --git a/libbuild2/functions-filesystem.cxx b/libbuild2/functions-filesystem.cxx index 2fcd305..d0861ba 100644 --- a/libbuild2/functions-filesystem.cxx +++ b/libbuild2/functions-filesystem.cxx @@ -93,10 +93,7 @@ namespace build2 bool rel (pattern.relative () == entry.relative () && !pattern.empty () && !entry.empty ()); - bool self (!pattern.empty () && - (*pattern.begin ()).find ("***") != string::npos); - - if (rel && !self) + if (rel && !path_pattern_self_matching (pattern)) return path_match (pattern, entry); // The start directory must be specified and be absolute. -- cgit v1.1