X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpackage.cpp;h=19ee511a814cf34bf46efd20f9409c7394b5d879;hb=c75c89d2425ab0c69e94d45a5d956286838bbc67;hp=aa9160e11b8e62ab03c16a0e961dc579bbe0894f;hpb=0d95fee118a3fcd78f153dca5721d9fe19b6f6bf;p=builder.git diff --git a/source/package.cpp b/source/package.cpp index aa9160e..19ee511 100644 --- a/source/package.cpp +++ b/source/package.cpp @@ -1,6 +1,7 @@ #include #include #include +#include "booleanevaluator.h" #include "builder.h" #include "package.h" @@ -38,7 +39,8 @@ Package::Loader::Loader(Package &p): void Package::Loader::if_arch(const string &cond) { - bool match = obj.builder.get_current_arch().match_name(cond); + BooleanEvaluator eval(sigc::hide<1>(sigc::mem_fun(&obj.builder.get_current_arch(), &Architecture::match_name)), false); + bool match = eval.evaluate(cond); obj.builder.get_logger().log("configure", format("%s: arch %s %smatched", obj.name, cond, (match ? "" : "not "))); if(match) load_sub_with(*this);