From 2508d4d0e05ef55beb3a4db52aa01424eedb4226 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 20 Jul 2017 15:30:21 +0300 Subject: Make package manifest build inclusions and exclusions order significant --- mod/build-config.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'mod/build-config.cxx') diff --git a/mod/build-config.cxx b/mod/build-config.cxx index ecbcf6f..1ac4939 100644 --- a/mod/build-config.cxx +++ b/mod/build-config.cxx @@ -160,14 +160,8 @@ namespace brep { for (const auto& bc: p.constraints) { - if (!bc.exclusion && match (bc.config, bc.target, c)) - return false; - } - - for (const auto& bc: p.constraints) - { - if (bc.exclusion && match (bc.config, bc.target, c)) - return true; + if (match (bc.config, bc.target, c)) + return bc.exclusion; } return false; -- cgit v1.1