From 81228b7becb2612321adc779755facb4d93596e4 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 6 Sep 2013 10:11:49 +0300 Subject: Ignore bad expressions in %if conditionals Yet another hack to allow successful parsing of spec files in host environment. Change-Id: Ie47ee06b13d3e8a79e583fc6ec97350e45237cca Signed-off-by: Markus Lehtonen --- build/parseSpec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/parseSpec.c b/build/parseSpec.c index 729d4fad9..fb137047a 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -352,9 +352,9 @@ int readLine(rpmSpec spec, int strip) match = parseExpressionBoolean(spec, s); if (match < 0) { rpmlog(RPMLOG_ERR, - _("%s:%d: bad %%if condition\n"), + _("%s:%d: bad %%if condition, continuing nevertheless\n"), ofi->fileName, ofi->lineNum); - return PART_ERROR; + match = 0; } } else if (ISMACRO(s, "%else")) { if (! spec->readStack->next) { -- cgit v1.2.3