From: Mikko Rasa Date: Wed, 25 May 2011 07:38:00 +0000 (+0000) Subject: Fix a bug in condition evaluation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=f4a10e1dc189f28367eafe3b91723d275928ced7;p=builder.git Fix a bug in condition evaluation --- diff --git a/source/condition.cpp b/source/condition.cpp index 136b852..0b020ea 100644 --- a/source/condition.cpp +++ b/source/condition.cpp @@ -27,7 +27,7 @@ Condition::Condition(SourcePackage &p, const string &expr): if(token==string::npos) expression.insert(StringMap::value_type(*i, "=")); else if(token==0 && (*i)[0]=='!') - expression.insert(StringMap::value_type(*i, "!")); + expression.insert(StringMap::value_type(i->substr(1), "!")); else expression.insert(StringMap::value_type(i->substr(0, token), i->substr(token))); }