]> git.tdb.fi Git - builder.git/commitdiff
Missed one location with the conditional conversion
authorMikko Rasa <tdb@tdb.fi>
Sun, 6 Oct 2013 16:26:26 +0000 (19:26 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 6 Oct 2013 16:26:26 +0000 (19:26 +0300)
source/component.cpp

index fa6fd5670a5e1cf56251224e7aaf7b80279f02ed..c2f4386a917b28a242868b53071b3084e3d00646 100644 (file)
@@ -340,7 +340,8 @@ void Component::Loader::build_info()
 
 void Component::Loader::if_arch(const string &cond)
 {
-       bool match = obj.package.get_builder().get_current_arch().match_name(cond);
+       BooleanEvaluator eval(sigc::hide<1>(sigc::mem_fun(&obj.package.get_builder().get_current_arch(), &Architecture::match_name)), false);
+       bool match = eval.evaluate(cond);
        obj.package.get_builder().get_logger().log("configure",
                format("%s/%s: arch %s %smatched", obj.package.get_name(), obj.name, cond, (match ? "" : "not ")));
        if(match)