From: xuhy Date: Fri, 22 Sep 2023 06:19:07 +0000 (+0800) Subject: Ignore bad expressions in %if conditionals X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcfdc7668a943371ffb65dce48ca0b39c074e246;p=tools%2Flibrpm-tizen.git Ignore bad expressions in %if conditionals Author: Markus Lehtonen Date: Fri Sep 6 10:11:49 2013 +0300 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 Change-Id: If5b0a41fc8832c8feba42245da2cb1e76ea1c827 --- diff --git a/build/parseSpec.c b/build/parseSpec.c index d0c42a43e..671976e11 100644 --- a/build/parseSpec.c +++ b/build/parseSpec.c @@ -417,9 +417,9 @@ int readLine(rpmSpec spec, int strip) match = parseExpressionBoolean(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) {